{{- if .Site.Params.analytics.googleTagManager.enabled }} {{- end }} {{- if .Site.Params.analytics.googleAnalytics.enabled }} {{- if .Site.Params.analytics.googleAnalytics.code }} {{- end }} {{- end }} {{ if .IsHome }} {{ else }} {{ if .Title }}{{ .Title }} |{{ end }} {{ end }} {{ i18n "head_title" }} {{- $critical := resources.Get "css/critical.css" | resources.Minify }} {{- $cssResources := slice }} {{- range .Site.Params.plugins.css }} {{- if findRE "^http" .URL }} {{- else }} {{- with resources.Get .URL }} {{- $cssResources = $cssResources | append . }} {{- end }} {{- end }} {{- end }} {{- if gt (len $cssResources) 0 }} {{- $cssBundle := $cssResources | resources.Concat "css/bundle.css" }} {{- $css := $cssBundle }} {{- if hugo.IsProduction }} {{- $css = $css | minify | fingerprint | resources.PostProcess }} {{- end }} {{- end }} {{- range .Site.Params.plugins.scss }} {{/* no external scss processing - as they need to be processed by the theme */}} {{- $scss := resources.Get .URL }} {{- $style := false }} {{- if $scss }} {{- $style = $scss | css.Sass }} {{- else }} {{- warnf "SCSS file not found: %s" .URL }} {{- end }} {{- if hugo.IsProduction }} {{- $style = $scss | css.Sass | resources.Minify | resources.Fingerprint }} {{- end }} {{- if $style }} {{- end }} {{- end }} {{- if not .Site.Params.colorTheme.auto.disable }} {{/* Inline script to prevent theme flash */}} {{- $colorModesScript := resources.Get "js/color-modes.js" }} {{- if hugo.IsProduction }} {{- $colorModesScript = $colorModesScript | resources.Minify | resources.Fingerprint }} {{- end }} {{- else }} {{- end }} {{- if .Site.Params.analytics.google_tag_manager.enabled }} {{- $analytics := resources.Get "js/gtag.js" | resources.Minify }} {{- else }} {{- end }} {{ template "_internal/opengraph.html" . }}