50 lines
1.5 KiB
HTML
50 lines
1.5 KiB
HTML
<header class="container main-header">
|
|
<nav class="no-print" role="navigation" aria-label="Primary">
|
|
<ul>
|
|
<li>
|
|
<a href="{{ .Site.BaseURL }}"
|
|
class="title no-reformat"
|
|
title="{{ .Site.Title }}" >
|
|
<!-- Insert the logo in SVG xml -->
|
|
{{ partial "logo.html" . -}}
|
|
<h1>{{ .Site.Title }}</h1>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
<ul>
|
|
{{ $currentPage := . -}}
|
|
{{ range sort .Site.Menus.main -}}
|
|
<li class="nav-item secondary">
|
|
<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 secondary">
|
|
{{ if .IsPage -}}
|
|
<a class="nav-item-link"
|
|
href="{{ .Site.BaseURL }}index.xml"
|
|
title="{{ i18n "subscribeToPublications" }} {{ i18n "toWebsite" }}">
|
|
{{ i18n "subscribe" }}
|
|
</a>
|
|
{{ else if .IsHome -}}
|
|
<a class="nav-item-link"
|
|
href="{{ .Site.BaseURL }}index.xml"
|
|
title="{{ i18n "subscribeToPublications" }} {{ i18n "toWebsite" }}">
|
|
{{ i18n "subscribe" }}
|
|
</a>
|
|
{{ else if .IsNode -}}
|
|
<a class="nav-item-link"
|
|
href="{{ .Permalink }}index.xml"
|
|
title="{{ i18n "subscribeToPublications" }} {{ i18n "toSection" }}">
|
|
{{ i18n "subscribe" }}
|
|
</a>
|
|
{{ end -}}
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
</header>
|