Merge commit 'bfb1829a86a2bc1b595dad52a9d6dcfe80dd0679' as 'themes/codex'
This commit is contained in:
11
themes/codex/layouts/partials/nav.html
Normal file
11
themes/codex/layouts/partials/nav.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<nav class="nav" id="navigation">
|
||||
<ul class="nav__list">
|
||||
{{ $currentPage := . }}
|
||||
{{ range .Site.Menus.main }}
|
||||
<li>
|
||||
<a {{ if or ($currentPage.IsMenuCurrent "main" .) (eq $currentPage.Section .Identifier) }} class="active"
|
||||
{{end}} href="{{ .URL }}">{{ .Name }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</nav>
|
||||
Reference in New Issue
Block a user