This repository has been archived on 2024-11-01. You can view files and clone it, but cannot push or open issues or pull requests.
blog/themes/kiera/layouts/partials/nav.html

13 lines
389 B
HTML
Raw Normal View History

2024-10-28 16:26:25 -05:00
{{ $currentPage := . }}
<nav>
<ul>
{{ range .Site.Menus.main }}
<li>
<a class="{{if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }}active{{end}}" href="{{ .URL | relURL }}">
<i class="fa-li fa {{ .Pre }} fa-lg"></i><span>{{ .Name }}</span>
</a>
</li>
{{ end }}
</ul>
</nav>