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

View File

@ -3,7 +3,11 @@
</h2> </h2>
<nav id="navbar"> <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 }} {{ range .Site.Menus.main }}
<a class="navbar-item" href="{{ .URL }}">{{ .Name }}</a> <a class="navbar-item" href="{{ .URL }}">{{ .Name }}</a>
{{ end }} {{ end }}