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 <daniel.holbach@gmail.com>
This commit is contained in:
Daniel Holbach 2024-09-05 08:12:13 +02:00 committed by zjedi
parent be2014bf8c
commit ae3f16bd93
3 changed files with 3 additions and 3 deletions

View file

@ -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 }}
<link rel="stylesheet" href="{{ $stylesheet.RelPermalink }}" type="text/css" integrity="{{ $stylesheet.Data.Integrity }}" />

View file

@ -2,7 +2,7 @@
publish = "exampleSite/public"
[build.environment]
HUGO_VERSION = "0.124.0"
HUGO_VERSION = "0.134.2"
HUGO_THEME = "repo"
[context.production]

View file

@ -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"},