From 201eba572c9dff935e9289e29571e59c20866ef2 Mon Sep 17 00:00:00 2001 From: Max Mehl Date: Wed, 18 Nov 2026 10:30:18 +0100 Subject: [PATCH] fix: Hugo 0.170.0 changes, SASS and Hugo deprecation warning --- config.toml | 7 +- mise.lock | 93 +++++++++++++++---- mise.toml | 3 +- themes/hugo-sustain/layouts/_default/rss.xml | 2 +- .../hugo-sustain/layouts/partials/head.html | 2 +- .../layouts/partials/head/css.html | 2 +- 6 files changed, 85 insertions(+), 24 deletions(-) diff --git a/config.toml b/config.toml index 13b5eb4..6b37c7f 100755 --- a/config.toml +++ b/config.toml @@ -1,5 +1,5 @@ baseurl = "https://mehl.mx/" -languageCode = "en-GB" +locale = "en-GB" title = "Max Mehl" theme = [ "hugo-sustain", "hugo-cloak-email", "hugo-mastodon-comments", "hugo-snap-gallery" ] summaryLength = 50 @@ -84,6 +84,7 @@ summaryLength = 50 source = "static/img/" target = "assets/images/" -[imaging] - compression = 'lossy' +[imaging.jpeg] + quality = 90 +[imaging.webp] quality = 90 diff --git a/mise.lock b/mise.lock index d81291b..7a44367 100644 --- a/mise.lock +++ b/mise.lock @@ -2,40 +2,99 @@ lockfile_version = 3 -[[tools.hugo-extended]] +[[tools."github:sass/dart-sass"]] +version = "1.108.2" +backend = "github:sass/dart-sass" +specifiers = ["1"] + +[tools."github:sass/dart-sass"."platforms.linux-arm64"] +checksum = "sha256:1c7a587c81467e8f7551d71e5d62845b53270033c5cc3d36aa8fa07330a5d2a9" +url = "https://github.com/sass/dart-sass/releases/download/1.108.2/dart-sass-1.108.2-linux-arm64.tar.gz" +url_api = "https://api.github.com/repos/sass/dart-sass/releases/assets/733743006" +provenance = "github-attestations" + +[tools."github:sass/dart-sass"."platforms.linux-arm64-musl"] +checksum = "sha256:4931bc8b31dcbf0dbf28ad5e390c275625b430ac8d8c006bbcd6fe58c8a3248b" +url = "https://github.com/sass/dart-sass/releases/download/1.108.2/dart-sass-1.108.2-linux-arm64-musl.tar.gz" +url_api = "https://api.github.com/repos/sass/dart-sass/releases/assets/733743010" +provenance = "github-attestations" + +[tools."github:sass/dart-sass"."platforms.linux-x64"] +checksum = "sha256:32d2eb5b83cbc180fce9657ff3c57401a9006c59eccfe0bfdde0aa755a66d42f" +url = "https://github.com/sass/dart-sass/releases/download/1.108.2/dart-sass-1.108.2-linux-x64.tar.gz" +url_api = "https://api.github.com/repos/sass/dart-sass/releases/assets/733743060" +provenance = "github-attestations" + +[tools."github:sass/dart-sass"."platforms.linux-x64-musl"] +checksum = "sha256:a5519557dac62fbe468428d0025043e0cf4344bda2f7f6e3c3cb2fccc1f37b62" +url = "https://github.com/sass/dart-sass/releases/download/1.108.2/dart-sass-1.108.2-linux-x64-musl.tar.gz" +url_api = "https://api.github.com/repos/sass/dart-sass/releases/assets/733743054" +provenance = "github-attestations" + +[tools."github:sass/dart-sass"."platforms.macos-arm64"] +checksum = "sha256:95b1bbb13f0b38ba8aacefae45ef23f11271231d24fb57b1593c9e2adf65481c" +url = "https://github.com/sass/dart-sass/releases/download/1.108.2/dart-sass-1.108.2-macos-arm64.tar.gz" +url_api = "https://api.github.com/repos/sass/dart-sass/releases/assets/733743056" +provenance = "github-attestations" + +[tools."github:sass/dart-sass"."platforms.macos-x64"] +checksum = "sha256:8822d1f3715d84126a6adfe7053559a64e69687bb6e1b5da0d7f854b0c6ba2fa" +url = "https://github.com/sass/dart-sass/releases/download/1.108.2/dart-sass-1.108.2-macos-x64.tar.gz" +url_api = "https://api.github.com/repos/sass/dart-sass/releases/assets/733743078" +provenance = "github-attestations" + +[tools."github:sass/dart-sass"."platforms.windows-x64"] +checksum = "sha256:8c9f35ac5a82090b36df59d3f411fe4403ce04332dff5abbfc633c91b5e3fe13" +url = "https://github.com/sass/dart-sass/releases/download/1.108.2/dart-sass-1.108.2-windows-x64.zip" +url_api = "https://api.github.com/repos/sass/dart-sass/releases/assets/733743082" +provenance = "github-attestations" + +[[tools.hugo]] version = "0.170.0" -backend = "aqua:gohugoio/hugo/hugo-extended" +backend = "aqua:gohugoio/hugo" specifiers = ["0.170.0"] -[tools.hugo-extended."platforms.linux-arm64"] +[tools.hugo."platforms.linux-arm64"] checksum = "sha256:4ec3acd12ac17dbffb34fa453d3630dc0926a2314c8cd4964a550cfa9a4dbc73" checksum_source = "mise-versions" -url = "https://github.com/gohugoio/hugo/releases/download/v0.170.0/hugo_extended_0.170.0_linux-arm64.tar.gz" -url_api = "https://api.github.com/repos/gohugoio/hugo/releases/assets/744015893" +url = "https://github.com/gohugoio/hugo/releases/download/v0.170.0/hugo_0.170.0_linux-arm64.tar.gz" +url_api = "https://api.github.com/repos/gohugoio/hugo/releases/assets/744015900" -[tools.hugo-extended."platforms.linux-arm64-musl"] +[tools.hugo."platforms.linux-arm64-musl"] checksum = "sha256:4ec3acd12ac17dbffb34fa453d3630dc0926a2314c8cd4964a550cfa9a4dbc73" checksum_source = "mise-versions" -url = "https://github.com/gohugoio/hugo/releases/download/v0.170.0/hugo_extended_0.170.0_linux-arm64.tar.gz" -url_api = "https://api.github.com/repos/gohugoio/hugo/releases/assets/744015893" +url = "https://github.com/gohugoio/hugo/releases/download/v0.170.0/hugo_0.170.0_linux-arm64.tar.gz" +url_api = "https://api.github.com/repos/gohugoio/hugo/releases/assets/744015900" -[tools.hugo-extended."platforms.linux-x64"] +[tools.hugo."platforms.linux-x64"] checksum = "sha256:0930754ec22ad2dd1a252f8c31a5e57faccc9d15f1c3d381ddafcb96eeb8aef0" checksum_source = "mise-versions" -url = "https://github.com/gohugoio/hugo/releases/download/v0.170.0/hugo_extended_0.170.0_linux-amd64.tar.gz" -url_api = "https://api.github.com/repos/gohugoio/hugo/releases/assets/744015909" +url = "https://github.com/gohugoio/hugo/releases/download/v0.170.0/hugo_0.170.0_linux-amd64.tar.gz" +url_api = "https://api.github.com/repos/gohugoio/hugo/releases/assets/744015902" -[tools.hugo-extended."platforms.linux-x64-musl"] +[tools.hugo."platforms.linux-x64-musl"] checksum = "sha256:0930754ec22ad2dd1a252f8c31a5e57faccc9d15f1c3d381ddafcb96eeb8aef0" checksum_source = "mise-versions" -url = "https://github.com/gohugoio/hugo/releases/download/v0.170.0/hugo_extended_0.170.0_linux-amd64.tar.gz" -url_api = "https://api.github.com/repos/gohugoio/hugo/releases/assets/744015909" +url = "https://github.com/gohugoio/hugo/releases/download/v0.170.0/hugo_0.170.0_linux-amd64.tar.gz" +url_api = "https://api.github.com/repos/gohugoio/hugo/releases/assets/744015902" -[tools.hugo-extended."platforms.windows-x64"] +[tools.hugo."platforms.macos-arm64"] +checksum = "sha256:b9dfc437df19dfd44720caf2e0ba7f9ca5c2e61164f2f4c53456f74d6fa28d22" +checksum_source = "mise-versions" +url = "https://github.com/gohugoio/hugo/releases/download/v0.170.0/hugo_0.170.0_darwin-universal.pkg" +url_api = "https://api.github.com/repos/gohugoio/hugo/releases/assets/744016098" + +[tools.hugo."platforms.macos-x64"] +checksum = "sha256:b9dfc437df19dfd44720caf2e0ba7f9ca5c2e61164f2f4c53456f74d6fa28d22" +checksum_source = "mise-versions" +url = "https://github.com/gohugoio/hugo/releases/download/v0.170.0/hugo_0.170.0_darwin-universal.pkg" +url_api = "https://api.github.com/repos/gohugoio/hugo/releases/assets/744016098" + +[tools.hugo."platforms.windows-x64"] checksum = "sha256:56c2bc95f3fc0b6be060f0a4a23a0287fb3954c6595f6f170b49330366083df5" checksum_source = "mise-versions" -url = "https://github.com/gohugoio/hugo/releases/download/v0.170.0/hugo_extended_0.170.0_windows-amd64.zip" -url_api = "https://api.github.com/repos/gohugoio/hugo/releases/assets/744016114" +url = "https://github.com/gohugoio/hugo/releases/download/v0.170.0/hugo_0.170.0_windows-amd64.zip" +url_api = "https://api.github.com/repos/gohugoio/hugo/releases/assets/744016110" [[tools.lychee]] version = "0.24.2" diff --git a/mise.toml b/mise.toml index 16b9b47..3738b0c 100644 --- a/mise.toml +++ b/mise.toml @@ -1,6 +1,7 @@ [tools] -hugo-extended = "0.170.0" +hugo = "0.170.0" lychee = "0.24.2" +"github:sass/dart-sass" = "1" [vars] build_dir = "public" diff --git a/themes/hugo-sustain/layouts/_default/rss.xml b/themes/hugo-sustain/layouts/_default/rss.xml index 9ac9c4c..5661024 100644 --- a/themes/hugo-sustain/layouts/_default/rss.xml +++ b/themes/hugo-sustain/layouts/_default/rss.xml @@ -37,7 +37,7 @@ {{ .Permalink }} Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} Hugo - {{ site.Language.LanguageCode }} + {{ site.Language.Locale }} {{- with $authorEmail }} {{.}}{{ with $authorName }} ({{ . }}){{ end }} {{- end }} diff --git a/themes/hugo-sustain/layouts/partials/head.html b/themes/hugo-sustain/layouts/partials/head.html index 06071f9..b240f1c 100644 --- a/themes/hugo-sustain/layouts/partials/head.html +++ b/themes/hugo-sustain/layouts/partials/head.html @@ -1,5 +1,5 @@ - + {{- $title := "" -}} diff --git a/themes/hugo-sustain/layouts/partials/head/css.html b/themes/hugo-sustain/layouts/partials/head/css.html index d442826..6d356af 100644 --- a/themes/hugo-sustain/layouts/partials/head/css.html +++ b/themes/hugo-sustain/layouts/partials/head/css.html @@ -12,7 +12,7 @@ {{- end }} -{{- $style := resources.Get "scss/main.scss" | resources.ExecuteAsTemplate "scss/main.scss" . | toCSS (dict "targetPath" "css/main.css" "enableSourceMap" false) }} +{{- $style := resources.Get "scss/main.scss" | resources.ExecuteAsTemplate "scss/main.scss" . | toCSS (dict "targetPath" "css/main.css" "enableSourceMap" false "silenceDeprecations" (slice "import")) }}