diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 1bb2414..241fe4e 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -14,11 +14,29 @@ align-items:center ">
- Holy + Holy +
+ +
+ {{ $currentPage := . }} + {{ $active := "" }} + + {{ range .Site.Menus.main }} + {{ if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }} + {{ $active = "active" }} + {{ end }} + + {{ .Name }} + + {{ end }}
- {{ $navBtn := `font:semibold px:8` }} - Home - About