trwnh.com/hugo/layouts/partials/site-header.html

27 lines
646 B
HTML
Raw Normal View History

2022-07-11 22:50:12 +00:00
<header class="site-header">
<div class="container">
<a href="/" class="site-masthead">
<p class="site-title">a</p>
</a>
<nav class="site-nav">
<ul>
{{ $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>
</nav>
</div>
</header>
<div style="position: relative;">
<div id="top" style="scroll-margin-top: var(--header-height);"></div>
</div>