From 6d4ee8700827511ed622a4d86a5b0692cc23eaae Mon Sep 17 00:00:00 2001 From: Abner Coimbre Date: Thu, 22 Jan 2026 13:19:13 -0800 Subject: [PATCH] Update meta description --- layouts/partials/head.html | 62 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 layouts/partials/head.html diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..48d31bb --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,62 @@ + + + {{- .Site.Title }} + {{- if not hugo.IsProduction }} + + {{- end }} + + + + + + + + + {{ block "head/favicon" . }}{{ partialCached "head/favicon.html" . }}{{ end }} + + {{- partial "google-fonts" . }} + + {{- $options := dict "enableSourceMap" true }} + {{- if hugo.IsProduction}} + {{- $options := dict "enableSourceMap" false "outputStyle" "compressed" }} + {{- end }} + {{- $style := resources.Get "/scss/style.scss" }} + {{- $style = $style | resources.ExecuteAsTemplate "/scss/style.scss" . | css.Sass $options }} + {{- if hugo.IsProduction }} + {{- $style = $style | minify | fingerprint "sha384" }} + {{- end -}} + + + {{ $js := resources.Get "js/bootstrap.js" }} + {{ $params := dict }} + {{ $sourceMap := cond hugo.IsProduction "" "inline" }} + {{ $opts := dict "sourceMap" $sourceMap "minify" hugo.IsProduction "target" "es2018" "params" $params }} + {{ $js = $js | js.Build $opts }} + {{ if hugo.IsProduction }} + {{ $js = $js | fingerprint "sha384" }} + {{ end }} + + + {{ if ($.Scratch.Get "image_compare_enabled") }} + {{ $imagecompare := resources.Get "js/image-compare-viewer.min.js" }} + {{- if not hugo.IsServer }} + {{- $js := (slice $imagecompare) | resources.Concat "/js/image-compare.js" | minify | fingerprint "sha384" }} + + {{- else }} + {{- $js := (slice $imagecompare) | resources.Concat "/js/image-compare.js" }} + + {{- end }} + {{- end }} + + {{- if not hugo.IsServer }} + {{ if and (.Site.Params.plausible.scriptURL) (.Site.Params.plausible.dataDomain) -}} + {{- partialCached "head/plausible" . }} + {{- end -}} + {{- end -}} + + {{- if not hugo.IsServer }} + {{- if .Site.Config.Services.GoogleAnalytics.ID }} + {{- template "_internal/google_analytics.html" . -}} + {{- end -}} + {{- end -}} +