commit a7cf533472929e3e3d5ca94bc0ec7e1ed0e9f46e
parent 62cd3764ce60982ba7cf4911499730f2b7451c99
Author: Lou Woell <lou.woell@posteo.de>
Date:   Sat, 21 Dec 2024 21:02:11 +0100

ressources.ToCSS -> css.Sass

the old version is deprecated in latest Hugo versions

Diffstat:
Mlayouts/partials/head.html | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/layouts/partials/head.html b/layouts/partials/head.html @@ -18,14 +18,14 @@ {{ if and (isset .Params "color") (not (eq .Params.color "")) }} {{ $localColorCss := resources.Get (printf "css/color/%s.scss" .Params.color) }} {{ $localCss := slice $localColorCss $defaultStyles | resources.Concat (printf "css/%s-local.scss" .Params.color) }} - {{ $localColorStyles := $localCss | resources.ToCSS }} + {{ $localColorStyles := $localCss | css.Sass }} <link rel="stylesheet" href="{{ $localColorStyles.Permalink }}"> {{ else }} <!-- Theme Variables --> {{ $colorCss := resources.Get (printf "css/color/%s.scss" ($.Site.Params.ThemeColor | default "orange")) }} {{ $css := slice $colorCss $defaultStyles | resources.Concat "css/base.scss" }} {{ $options := (dict "targetPath" "styles.css" "outputStyle" "compressed" "enableSourceMap" true "precision" 6 "includePaths" (slice "node_modules")) }} - {{ $styles := $css | resources.ToCSS $options }} + {{ $styles := $css | css.Sass $options }} <link rel="stylesheet" href="{{ $styles.Permalink }}"> {{ end }}