From 470eb1a1694c6f65f29d439ae636a704ce530761 Mon Sep 17 00:00:00 2001 From: Hoernschen Date: Thu, 17 Apr 2025 17:23:28 +0200 Subject: [PATCH] CHANGE sass function the comply to >0.128 hugo --- layouts/_default/baseof.html | 13 +++++++------ layouts/partials/footer.html | 2 +- layouts/partials/header.html | 6 ++---- layouts/partials/hero.html | 3 +-- layouts/partials/slider.html | 2 +- 5 files changed, 12 insertions(+), 14 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 3c754b2..37e46b4 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -28,13 +28,14 @@ {{ end }} {{ $template := resources.Get "scss/index.scss" }} {{ if $template }} {{ - $index := $template | resources.ExecuteAsTemplate "css/index.scss" . | - resources.ToCSS (dict "outputStyle" "compressed") | fingerprint }} + $index := $template | resources.ExecuteAsTemplate "css/index.scss" . | css.Sass (dict "outputStyle" "compressed") | fingerprint }} - {{ end }} {{ block "styling" . }} {{ end }} {{ $template := resources.Get - "scss/totop.scss" }} {{ if $template }} {{ $totop := $template | - resources.ExecuteAsTemplate "css/totop.scss" . | resources.ToCSS (dict - "outputStyle" "compressed") | fingerprint }} + {{ end }} + {{ block "styling" . }} + {{ end }} + {{ $template := resources.Get "scss/totop.scss" }} + {{ if $template }} + {{ $totop := $template | resources.ExecuteAsTemplate "css/totop.scss" . | css.Sass (dict "outputStyle" "compressed") | fingerprint }} {{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 5b8d9a5..62bce8c 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -4,7 +4,7 @@ {{- $links := index $footer "links" }} {{ $template := resources.Get "scss/footer.scss" }} {{ if $template }} -{{ $footer := $template | resources.ExecuteAsTemplate "css/footer.scss" . | resources.ToCSS (dict "outputStyle" "compressed") | fingerprint }} +{{ $footer := $template | resources.ExecuteAsTemplate "css/footer.scss" . | css.Sass (dict "outputStyle" "compressed") | fingerprint }} {{ end }}