mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 04:13:17 -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>
|
||||
|
||||
<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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user