www.kontakt-bamberg.de/layouts/_default/baseof.html

50 lines
2.1 KiB
HTML
Raw Normal View History

2023-03-11 11:41:19 +01:00
{{ $currentPage := . }}
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta property="og:site_name" content="{{ .Site.Title }}">
2023-03-13 01:44:13 +01:00
<meta property="og:title" content="{{ .Title }} | >&#8201;&lt; {{ .Site.Title }}">
2023-03-11 11:41:19 +01:00
<meta property="og:type" content="website">
<meta property="og:url" content="{{ .Permalink }}">
2023-03-26 18:43:16 +02:00
<meta property="og:image" content="{{ strings.TrimRight "/" .Site.BaseURL }}/image.jpg">
2023-03-11 11:41:19 +01:00
<meta property="og:locale" content="{{ .Site.LanguageCode }}">
<title>{{ block "title" . }}{{ .Title }} | >&#8201;&lt; {{ .Site.Title }}{{ end }}</title>
<link rel="icon" href="/icon.svg" sizes="any" type="image/svg+xml">
{{ $style := resources.Get "style.scss" | resources.ToCSS (dict "outputStyle" "compressed") }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
</head>
<body>
<header>
{{ partial "sm-menu.html" . }}
<div class="header-brand">
<a href="{{ .Site.BaseURL }}"><img alt="Logo von kontakt &ndash; dem Kulturprojekt" class="header-logo" src="/logo.svg"></a>
{{ partial "sm-menu.html" . }}
</div>
2023-03-11 11:41:19 +01:00
<input class="nav-toggle" id="toggleMainNav" type="checkbox">
<label class="nav-burger" for="toggleMainNav">
<div></div>
<div></div>
<div></div>
</label>
<nav class="nav-toggleable" style="--num-elements: {{ len .Site.Menus.main }}">
{{ range .Site.Menus.main }}
<a{{ if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }} class="is-active"{{ end }} href="{{ .URL }}"{{ if hasPrefix .URL "https://" }} target="_blank"{{ end }}>{{ .Name }}</a>
{{ end }}
</nav>
</header>
<main>
{{ block "main" . }}
{{ end }}
</main>
<footer>
<nav>
{{ range .Site.Menus.footer }}
<a{{ if or ($currentPage.IsMenuCurrent "footer" .) ($currentPage.HasMenuCurrent "footer" .) }} class="is-active"{{ end }} href="{{ .URL }}"{{ with .Params.rel }} rel="{{ . }}"{{ end }}{{ if hasPrefix .URL "https://" }} target="_blank"{{ end }}>{{ .Name }}</a>
{{ end }}
</nav>
</footer>
</body>
</html>