bunteshaus.de/themes/buha/layouts/partials/snippets/head.html
2022-06-24 19:00:02 +02:00

44 lines
2.1 KiB
HTML

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{{ $water := resources.Get "css/water.css" | resources.ToCSS }}
{{ $container := resources.Get "scss/container.scss" | resources.ToCSS }}
{{ $font := resources.Get "scss/font.scss" | resources.ToCSS }}
{{ $init := resources.Get "scss/init.scss" | resources.ToCSS }}
{{ $header := resources.Get "scss/header.scss" | resources.ToCSS }}
{{ $banner := resources.Get "scss/banner.scss" | resources.ToCSS }}
{{ $index := resources.Get "scss/index.scss" | resources.ToCSS }}
{{ $gen_list := resources.Get "scss/gen_list.scss" | resources.ToCSS }}
{{ $main := resources.Get "scss/main.scss" | resources.ToCSS }}
{{ $article := resources.Get "scss/article.scss" | resources.ToCSS }}
{{ $pagination := resources.Get "scss/pagination.scss" | resources.ToCSS }}
{{ $footer := resources.Get "scss/footer.scss" | resources.ToCSS }}
{{ $search := resources.Get "scss/search.scss" | resources.ToCSS }}
{{ $generator := resources.Get "scss/generator.scss" | resources.ToCSS }}
{{ $visibleIf := resources.Get "css/visibleIf.css" | resources.ToCSS }}
{{ $allcss := slice $water $font $init $container $header $banner $index $gen_list $main $article $pagination $footer $search $generator $visibleIf | resources.Concat "/css/vendor.css" | minify | fingerprint "sha512" }}
<link rel="stylesheet" href="{{ $allcss.RelPermalink }}" integrity="{{ $allcss.Data.Integrity }}">
{{ $title := print .Site.Title " | " .Title }}
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
<title>{{ $title }}</title>
<meta property="og:title" content="{{ site.Title }}" />
<link rel="canonical" href="{{ .Permalink }}">
{{- if or .IsHome (in .Site.Params.mainMenu .Section) (eq .Kind "term") (eq .Section "recurrent") -}}
{{ range .AlternativeOutputFormats -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end }}
{{ end -}}
{{ if .Site.Params.keywords -}}
<meta name="keywords" content="{{ .Site.Params.keywords }}" />
{{- end }}
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
{{ template "_internal/opengraph.html" . }}