mirror of
https://github.com/trwnh/hugo-theme-paradox.git
synced 2024-12-21 23:48:46 +00:00
19 lines
409 B
HTML
19 lines
409 B
HTML
|
<nav class="header-nav">
|
||
|
<div class="container">
|
||
|
|
||
|
<ul class="menu">
|
||
|
{{ $currentPage := . }}
|
||
|
{{ range .Site.Menus.main }}
|
||
|
<li
|
||
|
class='{{ if or ($currentPage.IsMenuCurrent "main" .) (eq $currentPage.Section .Identifier) }}active{{ end }}'>
|
||
|
<a href="{{ .URL | absLangURL }}">
|
||
|
{{ .Pre }}
|
||
|
<span>{{ .Name }}</span>
|
||
|
{{ .Post }}
|
||
|
</a>
|
||
|
</li>
|
||
|
{{ end }}
|
||
|
</ul>
|
||
|
|
||
|
</div>
|
||
|
</nav>
|