mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-11-24 22:10:39 +00:00
Robert Kaussow
42968b6a30
BREAKING CHANGE: The icon gdoc_telescope was removed. If you are using this icon you have to replace it. Build-in icons are prefixed with gdoc_ now. If you use built-in icons in e.g. menus you have to rename these references!
37 lines
1.6 KiB
HTML
37 lines
1.6 KiB
HTML
<header class="gblog-header">
|
|
<div class="container flex align-center justify-center">
|
|
<a class="gblog-header__link" rel="me" href="{{ .Site.BaseURL }}">
|
|
<span class="gblog-brand flex align-center justify-center">
|
|
<img class="gblog-brand__img" src="{{ (default "brand.svg" .Site.Params.logo) | relURL }}" alt="">
|
|
{{ .Site.Title }}
|
|
</span>
|
|
{{ with .Site.Params.subtitle }}
|
|
<span class="gblog-brand__subtitle flex align-center justify-center">{{ . }}</span>
|
|
{{ end }}
|
|
</a>
|
|
</div>
|
|
</header>
|
|
<nav class="gblog-nav">
|
|
<input type="checkbox" id="menu-control" class="hidden">
|
|
<div class="gblog-nav__control">
|
|
<label for="menu-control" class="flex align-center justify-center">
|
|
<svg class="icon gblog_menu"><use xlink:href="#gblog_menu"></use></svg>
|
|
<svg class="icon gblog_clear"><use xlink:href="#gblog_clear"></use></svg>
|
|
<span>Nav</span>
|
|
</label>
|
|
</div>
|
|
<ul class="gblog-nav__list container flex flex-wrap justify-center menu-content">
|
|
{{ $currentPage := .RelPermalink }}
|
|
{{ range $name, $taxonomy := .Site.Taxonomies.tags }}
|
|
{{ with $.Site.GetPage (printf "/tags/%s" $name) }}
|
|
<li>
|
|
<a class="gblog-nav__entry {{ if eq $currentPage .RelPermalink }} is-active {{ end }}" href="{{ .RelPermalink }}">{{ .Title }}</a>
|
|
</li>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ if .Site.Data.menu.extra.header }}
|
|
{{ partial "menu-extra" (dict "current" . "source" .Site.Data.menu.extra.header "target" "header") }}
|
|
{{ end }}
|
|
</ul>
|
|
</nav>
|