mirror of https://github.com/Hilbis/Hilbish
26 lines
1.0 KiB
HTML
26 lines
1.0 KiB
HTML
|
<header class="site-header sticky-top py-1">
|
||
|
<nav class="navbar navbar-expand-lg bg-light">
|
||
|
<div class="container-fluid">
|
||
|
<a class="navbar-brand" href="#">
|
||
|
<img src="/hilbish-flower.png" alt="" height="24" class="d-inline-block align-text-top">
|
||
|
Hilbish
|
||
|
</a>
|
||
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||
|
<span class="navbar-toggler-icon"></span>
|
||
|
</button>
|
||
|
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||
|
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
|
||
|
{{ $currentPage := . }}
|
||
|
{{ range .Site.Menus.nav }}
|
||
|
<li class="nav-item">
|
||
|
<a href="{{ .URL }}" class="nav-link {{ if $currentPage.HasMenuCurrent "nav" . }}active{{ end }}">
|
||
|
{{ .Name }}
|
||
|
</a>
|
||
|
</li>
|
||
|
{{ end }}
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
</nav>
|
||
|
</header>
|