mirror of
https://github.com/trwnh/hugo-theme-paradox.git
synced 2024-11-24 10:21:21 +00:00
15 lines
378 B
HTML
15 lines
378 B
HTML
<nav class="header-nav">
|
|
<ul class="menu">
|
|
{{ $currentPage := . }}
|
|
{{ range .Site.Menus.main }}
|
|
<li
|
|
class='{{ .Identifier }}{{ if or ($currentPage.IsMenuCurrent "main" .) (eq $currentPage.Section .Identifier) }}active{{ end }}'>
|
|
<a href="{{ .URL | relLangURL }}">
|
|
{{ .Pre }}
|
|
<span>{{ .Name }}</span>
|
|
{{ .Post }}
|
|
</a>
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
</nav> |