hugo-theme/layouts/partials/nav.html

34 lines
786 B
HTML

<header class="header">
<input class="menu-btn" type="checkbox" id="menu-btn" />
<ul class="menu" >
<li>
<a href="/" class="logo" >{{ .Site.Title }}</a>
</li>
<li>
<label class="menu-icon" for="menu-btn">
<div class="hamburger" onclick="myFunction(this)">
<div class="bar1"></div>
<div class="bar2"></div>
<div class="bar3"></div>
</div>
<script>
function myFunction(x) {
x.classList.toggle("change");
}
</script>
</label>
</li>
<li>
<ul class="menu-entries">
<li><a href="/" class="home-link" >Home</a> </li>
{{ range.Site.Menus.main }}
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
{{ end }}
</ul>
</li>
</ul>
</header>