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" -}}
2024-04-09 13:33:28 +02:00
{{ printf `< link rel = "%s" type = "%s" href = "%s" title = "%s" / > ` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
2020-04-29 21:27:53 +02:00
{{ 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
2024-03-13 09:59:22 +01:00
{{ $colorTheme := "light" }}
2024-04-26 06:37:08 +02:00
{{ $colorThemeSwitcher := true }}
2024-03-13 09:59:22 +01:00
2024-03-13 09:42:54 +01:00
{{ if and (isset site.Params "colortheme") (ne site.Params.colortheme "") }}
{{ $colorTheme = site.Params.colortheme | lower }}
2023-07-04 18:31:33 +02:00
{{ end }}
2024-04-26 06:37:08 +02:00
{{ if isset site.Params "colorthemeswitcher" }}
2024-03-13 09:59:22 +01:00
{{ $colorThemeSwitcher = site.Params.colorthemeswitcher }}
2024-04-26 06:37:08 +02:00
{{ else }}
{{ $colorThemeSwitcher = true }}
2024-03-13 09:59:22 +01:00
{{ end }}
{{ if or (eq $colorThemeSwitcher true) (eq $colorTheme "auto") }}
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") }}
2024-03-13 09:38:42 +01:00
{{ partial "resource.html" (dict "context" . "type" "css" "filename" "css/light.css") }}
{{ partial "resource.html" (dict "context" . "type" "css" "filename" "css/dark.css") }}
2020-01-12 07:51:51 +01:00
2024-04-09 13:18:45 +02:00
{{ $opts := dict "transpiler" "libsass" "targetPath" "css/style.css" }}
{{ range site.Params.customCSS }}
2024-05-13 05:03:14 +02:00
{{ $r := "" }}
{{ with resources.Get . }}
{{ $r = . }}
{{ else }}
{{ errorf "error: You defined customCSS, but %s was not found, please check your config." . }}
{{ end }}
{{ if $r}}
{{ with $r | toCSS $opts | minify | fingerprint }}
< link rel = "stylesheet" href = "{{ .RelPermalink }}" integrity = "{{ .Data.Integrity }}" crossorigin = "anonymous" >
{{ end }}
2024-04-09 13:18:45 +02:00
{{ end }}
{{ end }}
{{ if site.Params.isso.enabled }} {{/* TODO: maybe we can remove it */}}
< style >
#isso-thread .textarea {
color: #000;
}
#isso-thread .isso-feedlink {
position: relative;
z-index: 1;
}
< / style >
{{ end }}
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
2024-06-11 15:21:37 +02:00
{{ if (.Site.Params.GoogleAnalytics.enabled) }}
{{ partial "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" . }}