mirror of https://github.com/onweru/compose.git

Cellebyte
05.53.2025 a78c0436a3b750528ea59641d438d1b305390c32
fixed hugo 0.147 deprecations + CSS issues
3 files modified
15 ■■■■■ changed files
exampleSite/go.mod 2 ●●● patch | view | raw | blame | history
exampleSite/hugo.toml 2 ●●● patch | view | raw | blame | history
layouts/partials/head/index.html 11 ●●●● patch | view | raw | blame | history
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
exampleSite/hugo.toml
@@ -14,7 +14,7 @@
pagerSize = 10
path = 'page'
# disableKinds = ["taxonomy", "taxonomyTerm"]
# disableKinds = ["taxonomy"]
[outputs]
home = ["HTML", "RSS", "JSON"]
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 }}