{{- with $.Site.Params.thumbnail -}}
{{- end -}}
{{ partial "fontawesome/head.html" . }}
{{ partial "matomo/head.html" . }}
{{- $assets := slice -}}
{{- .Scratch.Set "sitevar" $.Site -}}
{{- partial "css/color/parse_color" .Scratch -}}
{{- .Scratch.Set "label" "alt_bg" -}}
{{- partial "css/color/detect_light_or_dark" .Scratch -}}
{{- if ($.Scratch.Get "alt_bg_is_dark") -}}
{{- if or $.Site.Params.http2 (getenv "HUGO_HTTP2") -}}
{{- partial "styles" (dict "Asset" "css/dark.css" "Root" $) -}}
{{- else -}}
{{- .Scratch.Set "code_css" "css/dark.css" -}}
{{- end -}}
{{- else -}}
{{- if or $.Site.Params.http2 (getenv "HUGO_HTTP2") -}}
{{- partial "styles" (dict "Asset" "css/light.css" "Root" $) -}}
{{- else -}}
{{- .Scratch.Set "code_css" "css/light.css" -}}
{{- end -}}
{{- end -}}
{{ partial "styles" (dict "Src" "/styles.css" "Root" $) }}
{{- if or $.Site.Params.http2 (getenv "HUGO_HTTP2") -}}
{{ $files := slice "reset" "fonts" "classes" "pagination" "page" "widgets" }}
{{ range $f := $files }}
{{- partial "styles" (dict "Asset" (printf "css/%s.css" $f) "Root" $ ) -}}
{{- end -}}
{{ end }}
{{- if not (or $.Site.Params.http2 (getenv "HUGO_HTTP2")) -}}
{{- $reset := resources.Get "css/reset.css" -}}
{{- $codecss := resources.Get (.Scratch.Get "code_css") -}}
{{- $fonts := resources.Get "css/fonts.css" -}}
{{- $classes := resources.Get "css/classes.css" -}}
{{- $pagination := resources.Get "css/pagination.css" -}}
{{- $page := resources.Get "css/page.css" -}}
{{- $widgets := resources.Get "css/widgets.css" -}}
{{- $css := slice $reset $codecss $fonts $classes $pagination $page $widgets | resources.Concat "css/bundle.css" | fingerprint -}}
{{- partial "styles" (dict "Src" $css.RelPermalink "Integrity" $css.Data.Integrity "Root" $ ) -}}
{{- end -}}
{{ if eq .Kind "page" }}
{{ partial "styles" (dict "Asset" "css/single.css" "Root" $) }}
{{ else }}
{{ partial "styles" (dict "Asset" "css/list.css" "Root" $) }}
{{ end }}
{{ if .Content -}}
{{ $figures := findRE "