{{ $currentPage := . }}
<!DOCTYPE html>
<html lang="{{ .Site.Language.Lang }}">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width,initial-scale=1.0">
	<title>{{ block "title" . }}
		{{ .Title }} | {{ .Site.Title }}
	{{ end }}</title>
	<link rel="icon" href="data:;base64,iVBORw0KGgo=">
	{{ $style := resources.Get "style.scss" | resources.ToCSS (dict "outputStyle" "compressed") }}
	<link rel="stylesheet" href="{{ $style.RelPermalink }}">
</head>
<body>
	<header>
		<nav class="nav nav-main">
			<a class="nav-logo" href="{{ .Site.LanguagePrefix }}/"><img src="/franconianNet.svg" alt="Logo of franconian.net">{{ .Site.Title }}</a>
			{{ if .IsTranslated }}
			{{ range .Translations }}
			<a class="nav-link" href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>
			{{ end }}
			<hr>
			{{ end }}
			{{ range .Site.Menus.main }}
			<a class="nav-link{{ if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }} nav-link-active{{ end }}" href="{{ .URL }}">{{ .Name }}</a>
			{{ end }}
		</nav>
	</header>
	{{ block "main" . }}
	{{ end }}
	<footer>
		{{ i18n "last_change" . }}: {{ .Lastmod.Format "2006-01-02 15:04:05 -0700" }}
		<nav class="nav">
			{{ range .Site.Menus.footer }}
			<a class="nav-link{{ if or ($currentPage.IsMenuCurrent "footer" .) ($currentPage.HasMenuCurrent "footer" .) }} nav-link-active{{ end }}" href="{{ .URL }}">{{ .Name }}</a>
			{{ end }}
		</nav>
	</footer>
</body>
</html>
