abdullahtarawneh.com/layouts/partials/site-header.html

22 lines
705 B
HTML
Raw Normal View History

2020-10-10 19:09:30 +00:00
<header class="site-header">
<div class="container">
2020-10-10 19:47:58 +00:00
<a href="/" class="site-title"><h1>{{ .Site.Title }}</h1></a>
2020-10-10 19:09:30 +00:00
<input type="checkbox" name="hamburger" id="hamburger">
<label for="hamburger" class="hamburger-label">
<div class="spinner diagonal part-1"></div>
<div class="spinner horizontal"></div>
<div class="spinner diagonal part-2"></div>
</label>
<nav class="site-nav">
<ul>
{{- $currentPage := . -}}
{{ range .Site.Menus.main -}}
<li class="{{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}">
<a href="{{ .URL | absLangURL }}">{{ .Name }}</a>
</li>
{{- end }}
</ul>
{{ partial "i18nlist.html" . }}
</nav>
</div>
</header>