diff options
Diffstat (limited to 'themes/aoidh/layouts/_partials/nav.html')
| -rw-r--r-- | themes/aoidh/layouts/_partials/nav.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/themes/aoidh/layouts/_partials/nav.html b/themes/aoidh/layouts/_partials/nav.html new file mode 100644 index 0000000..aadd2a8 --- /dev/null +++ b/themes/aoidh/layouts/_partials/nav.html @@ -0,0 +1,15 @@ + +<nav> + <ul> + {{- $currentPage := . }} + {{- range site.Menus.main }} + {{- if $currentPage.IsMenuCurrent .Menu . }} + <li class="nav-active"><a href="{{ .URL }}">{{ .Name }}</a></li> + {{- else if $currentPage.HasMenuCurrent .Menu . }} + <li class="nav-ancestor"><a href="{{ .URL }}">{{ .Name }}</a></li> + {{- else }} + <li><a href="{{ .URL }}">{{ .Name }}</a></li> + {{- end }} + {{- end }} + </ul> +</nav> |