about summary refs log tree commit diff
path: root/layouts/partials/header.html
blob: f9a00a9178829d581b162ef05e588e0c864b010e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
<nav>
<a class="site-title" href="{{ .Site.BaseURL | relLangURL }}">
    {{ .Site.Title }}
</a>
{{ if .Site.Menus.main }}
{{ $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 }}
{{ end }}
</nav>
<h1 class="p-name post-title{{ if .Params.draft }} draft{{end}}">{{ trim .Title  " " }}</h1>
{{ partial "post-language-switcher.html" . }}