From a78c0436a3b750528ea59641d438d1b305390c32 Mon Sep 17 00:00:00 2001
From: Cellebyte <marcel.fest@live.de>
Date: Thu, 08 May 2025 15:25:40 +0000
Subject: [PATCH] fixed hugo 0.147 deprecations + CSS issues

---
 exampleSite/go.mod               |    2 +-
 layouts/partials/head/index.html |   11 ++++++++---
 exampleSite/hugo.toml            |    2 +-
 3 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/exampleSite/go.mod b/exampleSite/go.mod
index 7638714..2c9a67e 100644
--- a/exampleSite/go.mod
+++ b/exampleSite/go.mod
@@ -2,4 +2,4 @@
 
 go 1.19
 
-require github.com/onweru/compose v0.0.0-20250123191723-478f5b77f140 // indirect
+require github.com/onweru/compose v0.0.0-20250123191918-095317e5c72c // indirect
diff --git a/exampleSite/hugo.toml b/exampleSite/hugo.toml
index 593d5bb..4f1cc7e 100644
--- a/exampleSite/hugo.toml
+++ b/exampleSite/hugo.toml
@@ -14,7 +14,7 @@
 pagerSize = 10
 path = 'page'
 
-# disableKinds = ["taxonomy", "taxonomyTerm"]
+# disableKinds = ["taxonomy"]
 
 [outputs]
 home = ["HTML", "RSS", "JSON"]
diff --git a/layouts/partials/head/index.html b/layouts/partials/head/index.html
index fd0d9c8..1df8e56 100644
--- a/layouts/partials/head/index.html
+++ b/layouts/partials/head/index.html
@@ -16,11 +16,16 @@
 {{- end }}
 <title>{{ if and $t (ne (trim (lower $s) "") (trim (lower $t) "")) }}{{ $t }} | {{ end }}{{ $s }}</title>
 
-{{- partial "opengraph" . -}}
+{{- partial "opengraph.html" . }}
+{{- partial "schema.html" . }}
+{{- partial "twitter_cards.html" . }}
+{{- if hugo.IsProduction }}
+{{- partial "google_analytics.html" . }}
+{{- end }}
 
 {{- $options := (dict "targetPath" "css/styles.css" "outputStyle" "compressed" "enableSourceMap" "true") -}}
-{{- $styles := resources.Get "sass/main.sass" | resources.ExecuteAsTemplate "main.sass" . | toCSS $options |
-fingerprint "sha512" }}
+{{- $styles := resources.Get "sass/main.sass" | resources.ExecuteAsTemplate "main.sass" . | css.Sass $options | resources.Fingerprint "sha512" }}
+
 <link rel="stylesheet" href="{{ $styles.Permalink }}" integrity="{{ $styles.Data.Integrity }}">
 
 {{- $config := site.Params }}

--
Gitblit v1.10.0