From ae3f16bd93d5ae8691e4887cea5fde7fbb8a93d2 Mon Sep 17 00:00:00 2001 From: Daniel Holbach Date: Thu, 5 Sep 2024 08:12:13 +0200 Subject: [PATCH] Use css.Sass instead of resources.ToCSS WARN deprecated: resources.ToCSS was deprecated in Hugo v0.128.0 and will be removed in a future release. Use css.Sass instead. Signed-off-by: Daniel Holbach --- layouts/partials/head.html | 2 +- netlify.toml | 2 +- theme.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 4b7a116..2b83b7b 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -25,7 +25,7 @@ {{ $stylesheetFonts := resources.Get "css/fonts.css" }} {{ $stylesheetGeneric := resources.Get "css/generic.css" }} -{{ $stylesheetScreen := ( resources.Get "css/_index.scss" | resources.ToCSS ) }} +{{ $stylesheetScreen := ( resources.Get "css/_index.scss" | css.Sass ) }} {{ $stylesheet := slice $stylesheetNormalize $stylesheetFA $stylesheetFonts $stylesheetGeneric $stylesheetScreen | resources.Concat "css/style.css" | resources.Minify | resources.Fingerprint }} diff --git a/netlify.toml b/netlify.toml index 339ca3f..df0f27f 100644 --- a/netlify.toml +++ b/netlify.toml @@ -2,7 +2,7 @@ publish = "exampleSite/public" [build.environment] - HUGO_VERSION = "0.124.0" + HUGO_VERSION = "0.134.2" HUGO_THEME = "repo" [context.production] diff --git a/theme.toml b/theme.toml index e712b99..54bafa1 100644 --- a/theme.toml +++ b/theme.toml @@ -24,7 +24,7 @@ tags = [ "theme" ] features = ["cover-image", "favicon", "header-menu", "auto-scroll"] -min_version = "0.124.0" +min_version = "0.132.0" authors = [ {name = "Jan Raasch", homepage = "https://www.janraasch.com"},