From: Danilo M. Date: Mon, 15 Sep 2025 09:57:47 +0000 (+0200) Subject: updated deprecated css function X-Git-Url: https://git.danix.xyz/?a=commitdiff_plain;h=HEAD;p=theme-danix.xyz.git updated deprecated css function --- diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 15c517c..24ee31b 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -5,10 +5,10 @@ {{ $style_options := (dict "targetPath" "css/style.css" "outputStyle" "compressed" "transpiler" "dartsass" "enableSourceMap" (not hugo.IsProduction)) }} - {{ $style := resources.Get "sass/main.scss" | resources.ToCSS $style_options | fingerprint }} + {{ $style := resources.Get "sass/main.scss" | css.Sass $style_options | fingerprint }} {{ $noscript_options := (dict "targetPath" "css/noscript.css" "outputStyle" "compressed" "transpiler" "dartsass" "enableSourceMap" (not hugo.IsProduction)) }} - {{ $noscript := resources.Get "sass/noscript.scss" | resources.ToCSS $noscript_options | fingerprint }} + {{ $noscript := resources.Get "sass/noscript.scss" | css.Sass $noscript_options | fingerprint }} @@ -16,7 +16,7 @@ {{ if eq "curriculum" .Type }} {{ $print_style_options := (dict "targetPath" "css/print.css" "outputStyle" "compressed" "transpiler" "dartsass" "enableSourceMap" (not hugo.IsProduction)) }} - {{ $print_style := resources.Get "sass/print.scss" | resources.ToCSS $print_style_options | fingerprint }} + {{ $print_style := resources.Get "sass/print.scss" | css.Sass $print_style_options | fingerprint }} {{ end }}