diff options
Diffstat (limited to 'layouts/partials/header.html')
-rw-r--r-- | layouts/partials/header.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index caa698f..34fd729 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -3,12 +3,14 @@ <a class="navigation-title" href="{{ "/" | absURL }}"> {{ .Site.Title }} </a> + {{with .Site.Menus.main}} <ul class="navigation-list float-right"> - {{ range sort .Site.Menus.main }} + {{ range sort . }} <li class="navigation-item"> <a class="navigation-link" href="{{ .URL }}">{{ .Name }}</a> </li> {{ end }} </ul> + {{end}} </section> </nav> |