From ad6d622a8dc8d3e909a1bf8cc867fe6943f98b85 Mon Sep 17 00:00:00 2001 From: ffreeez <133223917+ffreeez@users.noreply.github.com> Date: Sun, 22 Sep 2024 03:35:20 +0800 Subject: [PATCH] Update head.html Fix: Hugo WARN deprecated --- layouts/partials/head.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 1027940..dd9d231 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -16,7 +16,7 @@ {{ $options := (dict "outputStyle" "compressed" "enableSourceMap" (not hugo.IsProduction)) }} {{ $sass := resources.Get "css/main.scss" }} - {{ $style := $sass | resources.ToCSS $options | resources.Fingerprint "sha512" }} + {{ $style := $sass | css.Sass $options | resources.Fingerprint "sha512" }} {{ if .Params.mathjax }} {{ partial "mathjax.html" . }} {{ end }}