From fa760d70cb28217e21ec893a23c963906036629e Mon Sep 17 00:00:00 2001 From: powerfullz <61956140+powerfullz@users.noreply.github.com> Date: Sun, 8 Sep 2024 00:42:07 +0800 Subject: [PATCH] fix: use `css.Sass` instead of deprecated `resources.ToCSS` (#1054) --- layouts/partials/comments/provider/disqusjs.html | 2 +- layouts/partials/head/style.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/comments/provider/disqusjs.html b/layouts/partials/comments/provider/disqusjs.html index 8dbcc13..967c38c 100644 --- a/layouts/partials/comments/provider/disqusjs.html +++ b/layouts/partials/comments/provider/disqusjs.html @@ -2,7 +2,7 @@ {{- $disqusjs := .Site.Params.Comments.disqusjs -}} {{- if and (not $pc.Disable) (and $disqusjs.Shortname $disqusjs.ApiKey) -}} -{{- $style := resources.Get "scss/partials/comments/disqusjs.scss" | resources.ToCSS | minify -}} +{{- $style := resources.Get "scss/partials/comments/disqusjs.scss" | toCSS | minify -}}
diff --git a/layouts/partials/head/style.html b/layouts/partials/head/style.html index ee6b017..30ca26e 100644 --- a/layouts/partials/head/style.html +++ b/layouts/partials/head/style.html @@ -1,3 +1,3 @@ {{ $sass := resources.Get "scss/style.scss" }} -{{ $style := $sass | resources.ToCSS | minify | resources.Fingerprint "sha256" }} +{{ $style := $sass | toCSS | minify | resources.Fingerprint "sha256" }} \ No newline at end of file