hugo_idunn/layouts/partials/header.html

29 lines
790 B
HTML
Raw Normal View History

2020-04-27 16:49:21 +02:00
<header class="navbar">
<nav id="navigation">
<section class="navigation-container">
<a id="navigation-title" href="/">
{{ if $.Site.Params.logo }}
<img src="{{ $.Site.BaseURL }}{{ $.Site.Params.logo }}" class="navbar_title_logo" alt="{{ $.Site.Title }}">
{{ else }}
{{ $.Site.Title }}
{{ end }}
</a>
<input type="checkbox" id="menu-toggle" />
<label class="menu-button" for="menu-toggle">
<div class="menu-button-inner">
<div class="menu-button-image"></div>
</div>
</label>
<ul id="navigation-list">
{{ $current := . }}
{{ range .Site.Menus.main }}
<li class="navigation-item {{ if $current.IsMenuCurrent "main" . }}active{{ end }}">
<a href="{{ .URL }}">{{ .Name }}</a>
</li>
{{ end }}
</ul>
</section>
</nav>
</header>