hugo-theme-paradox/layouts/partials/nav-header.html

15 lines
378 B
HTML
Raw Permalink Normal View History

<nav class="header-nav">
2022-10-16 22:15:34 +00:00
<ul class="menu">
{{ $currentPage := . }}
{{ range .Site.Menus.main }}
<li
2022-10-17 14:46:58 +00:00
class='{{ .Identifier }}{{ if or ($currentPage.IsMenuCurrent "main" .) (eq $currentPage.Section .Identifier) }}active{{ end }}'>
2022-10-16 22:15:34 +00:00
<a href="{{ .URL | relLangURL }}">
{{ .Pre }}
<span>{{ .Name }}</span>
{{ .Post }}
</a>
</li>
{{ end }}
</ul>
</nav>