]> danix's work - theme-danix.xyz.git/commitdiff
updated deprecated css function master
authorDanilo M. <redacted>
Mon, 15 Sep 2025 09:57:47 +0000 (11:57 +0200)
committerDanilo M. <redacted>
Mon, 15 Sep 2025 09:57:47 +0000 (11:57 +0200)
layouts/partials/head.html

index 15c517ce5f8f1eb71cbff8f590ff4717f6b6fdb0..24ee31bca89c08cf13d1f11b81e3c0f0616db1f1 100644 (file)
@@ -5,10 +5,10 @@
        <link rel="profile" href="https://gmpg.org/xfn/11">
 
        {{ $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 }}
 
        <link rel="stylesheet" href="{{ $style.RelPermalink }}">
        <link rel="stylesheet" href="{{ "css/syntax.css" |relURL }}">
@@ -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 }}
        <link media="print" rel="stylesheet" href="{{ $print_style.RelPermalink }}">
        {{ end }}