13 lines
389 B
HTML
13 lines
389 B
HTML
|
{{ $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>
|