mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-11-17 13:25:57 -06:00
Don't force the homepage to be named "Home" on the navbar
This commit is contained in:
parent
c7cfb9c844
commit
0d6aed2b18
@ -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 }}
|
||||||
|
Loading…
Reference in New Issue
Block a user