2020-07-06 18:55:32 +00:00
|
|
|
<header class="gblog-header">
|
|
|
|
<div class="container flex align-center justify-center">
|
2020-07-23 08:00:18 +00:00
|
|
|
<a class="gblog-header__link" rel="me" href="{{ .Site.BaseURL }}">
|
2020-07-06 18:55:32 +00:00
|
|
|
<span class="gblog-brand flex align-center justify-center">
|
2020-11-08 14:00:48 +00:00
|
|
|
<img class="gblog-brand__img" src="{{ (default "brand.svg" .Site.Params.logo) | relURL }}" alt="" width=60 height=60>
|
2020-07-06 18:55:32 +00:00
|
|
|
{{ .Site.Title }}
|
|
|
|
</span>
|
2020-07-24 20:25:04 +00:00
|
|
|
{{ with .Site.Params.subtitle }}
|
2020-07-12 14:28:51 +00:00
|
|
|
<span class="gblog-brand__subtitle flex align-center justify-center">{{ . }}</span>
|
|
|
|
{{ end }}
|
2020-07-06 18:55:32 +00:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
<nav class="gblog-nav">
|
|
|
|
<input type="checkbox" id="menu-control" class="hidden">
|
|
|
|
<div class="gblog-nav__control">
|
2020-07-12 14:28:51 +00:00
|
|
|
<label for="menu-control" class="flex align-center justify-center">
|
2020-07-06 18:55:32 +00:00
|
|
|
<svg class="icon menu"><use xlink:href="#menu"></use></svg>
|
2020-07-12 14:28:51 +00:00
|
|
|
<svg class="icon clear"><use xlink:href="#clear"></use></svg>
|
2020-07-06 18:55:32 +00:00
|
|
|
<span>Nav</span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<ul class="gblog-nav__list container flex flex-wrap justify-center menu-content">
|
2020-07-08 07:24:59 +00:00
|
|
|
{{ $currentPage := .RelPermalink }}
|
2020-07-06 18:55:32 +00:00
|
|
|
{{ range $name, $taxonomy := .Site.Taxonomies.tags }}
|
|
|
|
{{ with $.Site.GetPage (printf "/tags/%s" $name) }}
|
|
|
|
<li>
|
2020-07-08 07:24:59 +00:00
|
|
|
<a class="gblog-nav__entry {{ if eq $currentPage .RelPermalink }} is-active {{ end }}" href="{{ .RelPermalink }}">{{ .Title }}</a>
|
2020-07-06 18:55:32 +00:00
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</nav>
|