bunteshaus.de/themes/buha/layouts/partials/snippets/head.html

45 lines
2.2 KiB
HTML
Raw Normal View History

2022-04-11 20:53:58 +02:00
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
2022-05-09 21:37:34 +02:00
{{ $water := resources.Get "css/water.css" | resources.ToCSS }}
2022-06-07 20:15:31 +02:00
{{ $container := resources.Get "scss/container.scss" | resources.ToCSS }}
2022-06-08 00:38:13 +02:00
{{ $font := resources.Get "scss/font.scss" | resources.ToCSS }}
2022-06-12 19:27:57 +02:00
{{ $init := resources.Get "scss/init.scss" | resources.ToCSS }}
2022-06-07 20:15:31 +02:00
{{ $header := resources.Get "scss/header.scss" | resources.ToCSS }}
{{ $banner := resources.Get "scss/banner.scss" | resources.ToCSS }}
2022-06-12 13:50:06 +02:00
{{ $index := resources.Get "scss/index.scss" | resources.ToCSS }}
{{ $gen_list := resources.Get "scss/gen_list.scss" | resources.ToCSS }}
2022-06-07 20:15:31 +02:00
{{ $main := resources.Get "scss/main.scss" | resources.ToCSS }}
2022-06-12 13:50:06 +02:00
{{ $article := resources.Get "scss/article.scss" | resources.ToCSS }}
2022-06-08 00:38:13 +02:00
{{ $pagination := resources.Get "scss/pagination.scss" | resources.ToCSS }}
{{ $footer := resources.Get "scss/footer.scss" | resources.ToCSS }}
{{ $search := resources.Get "scss/search.scss" | resources.ToCSS }}
2022-06-08 06:09:50 +02:00
{{ $generator := resources.Get "scss/generator.scss" | resources.ToCSS }}
2022-06-24 20:39:21 +02:00
{{ $links := resources.Get "scss/links.scss" | resources.ToCSS }}
2022-06-15 14:48:32 +02:00
{{ $visibleIf := resources.Get "css/visibleIf.css" | resources.ToCSS }}
2022-06-24 20:39:21 +02:00
{{ $allcss := slice $water $font $init $container $header $banner $index $gen_list $main $article $pagination $footer $search $generator $links $visibleIf | resources.Concat "/css/vendor.css" | minify | fingerprint "sha512" }}
2022-04-11 20:53:58 +02:00
<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 }}">
2022-06-24 19:00:02 +02:00
{{- 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 }}
2022-04-11 20:53:58 +02:00
{{ 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" . }}