2019-07-08 07:05:23 +02:00
|
|
|
<header class="main-header">
|
2021-11-04 18:19:15 +01:00
|
|
|
<a href="{{ .Site.BaseURL }}" class="title no-reformat">
|
|
|
|
<img class="avatar no-print" src="{{ .Site.BaseURL }}images/avatar.png">
|
2021-10-29 22:34:24 +02:00
|
|
|
<h1>{{ .Site.Title }}</h1>
|
|
|
|
</a>
|
2021-11-04 18:19:15 +01:00
|
|
|
<nav class="no-print" role="navigation" aria-label="Primary">
|
2021-10-29 22:34:24 +02:00
|
|
|
<ul>
|
|
|
|
{{ $currentPage := . -}}
|
|
|
|
{{ range sort .Site.Menus.main -}}
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-item-link{{if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }} active{{end}}"
|
|
|
|
href="{{ .URL }}" title="{{ .Title }}">{{ .Name }}</a>
|
|
|
|
</li>
|
|
|
|
{{ end -}}
|
|
|
|
<li class="nav-item">
|
2021-10-24 14:24:43 +02:00
|
|
|
{{ if .IsPage -}}
|
2021-10-29 22:34:24 +02:00
|
|
|
<a class="nav-item-link"
|
|
|
|
href="{{ .Site.BaseURL }}index.xml"
|
2022-11-14 18:21:38 +01:00
|
|
|
title="{{ i18n "subscribeToPublications" }} {{ i18n "toWebsite" }}">
|
|
|
|
{{ i18n "subscribe" }}
|
2021-10-29 22:34:24 +02:00
|
|
|
</a>
|
2021-10-24 14:24:43 +02:00
|
|
|
{{ else if .IsHome -}}
|
2021-10-29 22:34:24 +02:00
|
|
|
<a class="nav-item-link"
|
|
|
|
href="{{ .Site.BaseURL }}index.xml"
|
2022-11-14 18:21:38 +01:00
|
|
|
title="{{ i18n "subscribeToPublications" }} {{ i18n "toWebsite" }}">
|
|
|
|
{{ i18n "subscribe" }}
|
2021-10-29 22:34:24 +02:00
|
|
|
</a>
|
2021-10-24 14:24:43 +02:00
|
|
|
{{ else if .IsNode -}}
|
2021-10-29 22:34:24 +02:00
|
|
|
<a class="nav-item-link"
|
|
|
|
href="{{ .Permalink }}index.xml"
|
2022-11-14 18:21:38 +01:00
|
|
|
title="{{ i18n "subscribeToPublications" }} {{ i18n "toSection" }}">
|
|
|
|
{{ i18n "subscribe" }}
|
2021-10-29 22:34:24 +02:00
|
|
|
</a>
|
2021-10-24 14:24:43 +02:00
|
|
|
{{ end -}}
|
2021-10-29 22:34:24 +02:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
2019-07-08 07:05:23 +02:00
|
|
|
</header>
|