{{ if hugo.IsProduction }} {{ template "_internal/opengraph.html" . }} {{ template "_internal/twitter_cards.html" . }} {{ template "_internal/google_analytics.html" . }} {{ end }} {{ if .IsHome }} {{ .Site.Title }} {{ if .Site.Params.subtitle }} - {{ .Site.Params.subtitle }} {{ end }} {{ else }} {{ .Site.Title }} - {{ .Title }} {{ end }} {{ $favicon := "favicon.ico" }} {{ $options := (dict "targetPath" "minima.css" "outputStyle" "compressed" "enableSourceMap" true) }} {{ $style := resources.Get "css/main.scss" | resources.ExecuteAsTemplate "main.scss" . | resources.ToCSS $options | fingerprint }} {{ $options = (dict "targetPath" "minima.js" "minify" true "params" site.Params) }} {{ $script := resources.Get "js/main.js" | js.Build $options | fingerprint }} {{ if and .Site.Params.search.enable (eq .Layout "search") }} {{ $options = (dict "minify" true "params" site.Params) }} {{ $search := resources.Get "js/search.js" | js.Build $options}} {{ $fusejs := resources.Get "js/min/fuse.basic.min.js" }} {{ $script := (slice $fusejs $search) | resources.Concat "assets/js/search.js" | fingerprint }} {{ end }} {{ if .IsTranslated }} {{ range .Translations }} {{ end }} {{ end }} {{ if eq .Site.Params.analytics.provider "umami" }} {{ with .Site.Params.analytics.umami }} {{ end }} {{ end }}