hugo-theme-anubis2/layouts/partials/header.html

15 lines
495 B
HTML
Raw Normal View History

2020-06-21 22:23:07 +02:00
<h1 class="site-title">
2020-05-24 18:07:02 +02:00
<a href="{{ .Site.BaseURL | relLangURL }}">{{ .Site.Title }}</a>
2020-01-12 07:51:51 +01:00
</h1>
{{ if .Site.Menus.main }}
<nav>
{{ $currentPage := . }}
{{ range .Site.Menus.main }}
<a class="{{if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }} active{{end}}" href="{{ .URL | absLangURL }}" title="{{ .Title }}">{{ .Name }}</a>
{{ end }}
</nav>
{{ else }}
<nav></nav>
{{ end }}
{{ partial "header-extra.html" . }}