You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.3 KiB
31 lines
1.3 KiB
<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="FraLUG" width=180 height=96> |
|
{{ .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"> |
|
|
|
<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>
|
|
|