2020-01-12 07:51:51 +01:00
<!-- Basic stuff -->
< meta charset = "utf-8" >
< meta name = "HandheldFriendly" content = "True" >
< meta name = "viewport" content = "width=device-width, initial-scale=1.0" >
< meta name = "referrer" content = "no-referrer-when-downgrade" >
2021-10-22 11:51:33 +02:00
{{ partial "title.html" . }}
2021-10-19 19:06:44 +02:00
< meta name = "description" content = "{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end -}}" >
2020-01-12 07:51:51 +01:00
2022-02-22 16:38:27 +01:00
{{ with .Keywords }}
< meta name = "keywords" content = "{{ range $i, $e := . }}{{ if $i }},{{ end }}{{ $e }}{{ end }}" >
{{ end }}
2021-12-27 18:18:00 +01:00
{{ if and (.IsPage) (eq .Params.hidden true)}}
< meta name = "robots" content = "noindex" / >
{{ end }}
2020-04-29 21:27:53 +02:00
{{ with .OutputFormats.Get "rss" -}}
{{ printf `< link rel = "%s" type = "%s" href = "%s" title = "%s" / > ` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
2020-01-12 07:51:51 +01:00
2021-10-24 14:24:48 +02:00
{{ partial "favicons.html" . }}
2022-02-18 12:40:24 +01:00
2023-07-04 18:31:33 +02:00
{{ $style := "light-without-switcher" }}
{{ if and (isset site.Params "style") (ne site.Params.style "") }}
{{ $style = site.Params.style | lower }}
{{ end }}
{{ if not (in (slice "light-without-switcher" "dark-without-switcher") $style) }}
2022-02-18 12:40:24 +01:00
< style >
body {
visibility: hidden;
opacity: 0;
}
< / style >
< noscript >
< style >
body {
visibility: visible;
opacity: 1;
}
< / style >
< / noscript >
2023-07-04 18:31:33 +02:00
{{end}}
2022-02-18 12:40:24 +01:00
2020-11-04 17:46:19 +01:00
{{ partial "resource.html" (dict "context" . "type" "css" "filename" "css/main.css") }}
2020-01-12 07:51:51 +01:00
2022-01-18 17:56:02 +01:00
{{ if .Site.Params.copyCodeButton | default true }}
{{ partial "resource.html" (dict "context" . "type" "js" "filename" "js/copy-code.js") }}
{{ end }}
2020-07-09 21:42:23 +02:00
{{ range .Site.Params.customJS -}}
2020-11-04 17:46:19 +01:00
{{ partial "resource.html" (dict "context" $ "type" "js" "filename" . ) }}
2020-07-09 21:42:23 +02:00
{{- end }}
2021-06-17 12:18:18 +02:00
{{ if isset .Site.Params "webmentions" }}
{{ if isset .Site.Params.webmentions "login" }}
< link rel = "webmention" href = "https://webmention.io/{{.Site.Params.webmentions.login}}/webmention" / >
{{ if eq .Site.Params.webmentions.pingback true }}
< link rel = "pingback" href = "https://webmention.io/{{.Site.Params.webmentions.login}}/xmlrpc" / >
{{ end }}
{{ end }}
{{ if isset .Site.Params.webmentions "url" }}
< link rel = "webmention" href = "{{.Site.Params.webmentions.url}}" / >
2021-01-11 19:40:41 +01:00
{{ end }}
2021-02-23 21:49:44 +01:00
{{ end }}
2021-01-11 19:40:41 +01:00
2020-01-12 07:51:51 +01:00
<!-- Article tags -->
<!-- <meta property="article:published_time" content="">
< meta property = "article:modified_time" content = "" >
< meta property = "article:tag" content = "" >
< meta property = "article:publisher" content = "https://www.facebook.com/XXX" > -->
2020-01-23 21:55:42 +01:00
2021-10-05 15:18:47 +02:00
{{ if and (.Site.GoogleAnalytics) (hugo.IsProduction) }}
2021-04-11 16:32:40 +02:00
{{ template "_internal/google_analytics.html" . }}
2020-06-05 17:32:01 +02:00
{{ end }}
2020-06-09 21:45:50 +02:00
2022-08-13 08:41:36 +02:00
{{ if (.Site.Params.UmamiAnalytics.enabled ) }}
{{ partial "umami_analytics.html" . }}
{{ end }}
2020-10-23 13:48:07 +02:00
{{ partial "head-extra.html" . }}