diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 9c65a31..b1c0e96 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,2 +1,31 @@ + + + {{ $currentPage := . }} + {{ range .Site.Menus.main }} + {{ if .HasChildren }} + + + {{ .Pre }} + {{ .Name }} + + + + {{ range .Children }} + + {{ .Name }} + + {{ end }} + + {{ else }} + + + {{ .Pre }} + {{ .Name }} + + + {{ end }} + {{ end }} + + \ No newline at end of file