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 }}" />