diff options
Diffstat (limited to 'layouts/partials/header.html')
-rw-r--r-- | layouts/partials/header.html | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index e9b4597..a3df9c6 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -20,13 +20,20 @@ </a> </div> <ul class="list"> - {{ $currentPage := . }} {{ range .Site.Menus.main }} <li class="pv2"> - <a class="link white db grow {{if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }}active{{end}}" href="{{ .URL | relLangURL }}" title="{{ .Title }}"> + <a class="link white db grow" href="{{ .URL | relLangURL }}" title="{{ .Title }}"> + {{ .Pre }} {{ .Name }}</a> + </li> + {{ end }} + </ul> + <ul class="list"> + {{ range .Site.Menus.links }} + <li class="pv2"> + <a class="link white db grow" href="{{ .URL | relLangURL }}" title="{{ .Title }}"> {{ .Pre }} {{ .Name }}</a> - {{ end }} </li> + {{ end }} </ul> </nav> |