Don't force the homepage to be named "Home" on the navbar

This commit is contained in:
BBaoVanC 2021-10-11 20:13:20 -05:00
parent c7cfb9c844
commit 0d6aed2b18
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
1 changed files with 5 additions and 1 deletions

View File

@ -3,7 +3,11 @@
</h2>
<nav id="navbar">
<a class="navbar-item" href="{{ "/" | relLangURL }}">Home</a>
{{ with .Site.GetPage "/" }}
{{/* if I use relLangURL, then it does /es/es/ instead of /es/ (for example) */}}
<a class="navbar-item" href="{{ .Permalink | relURL }}">{{ .Title }}</a>
{{ end }}
{{ range .Site.Menus.main }}
<a class="navbar-item" href="{{ .URL }}">{{ .Name }}</a>
{{ end }}