git: b0edb10bc4 - main - documentation: Fix build with gohugo 0.139.4

From: Fernando Apesteguía <fernape_at_FreeBSD.org>
Date: Mon, 09 Dec 2024 19:25:34 UTC
The branch main has been updated by fernape:

URL: https://cgit.FreeBSD.org/doc/commit/?id=b0edb10bc42d6b9e5a747a928dfa4ba4c965c793

commit b0edb10bc42d6b9e5a747a928dfa4ba4c965c793
Author:     Fernando Apesteguía <fernape@FreeBSD.org>
AuthorDate: 2024-12-09 19:24:16 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2024-12-09 19:25:16 +0000

    documentation: Fix build with gohugo 0.139.4
    
    resources.ToCSS was deprecated in 0.128. gohugo 0.139.4 errors on this.
---
 documentation/themes/beastie/layouts/partials/site-head.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/documentation/themes/beastie/layouts/partials/site-head.html b/documentation/themes/beastie/layouts/partials/site-head.html
index 1031387406..55bcabac9e 100644
--- a/documentation/themes/beastie/layouts/partials/site-head.html
+++ b/documentation/themes/beastie/layouts/partials/site-head.html
@@ -14,7 +14,7 @@
   {{ if $.Site.Params.isOnline }}
     <link rel="shortcut icon" href="{{ absLangURL ($.Site.BaseURL) }}favicon.ico">
 
-    {{- $styles := resources.Get "styles/main.scss" | resources.ToCSS | resources.Minify }}
+    {{- $styles := resources.Get "styles/main.scss" | css.Sass | resources.Minify }}
     <link rel="stylesheet" href="{{ $styles.Permalink }}">
     <link rel="stylesheet" href="{{ absLangURL ($.Site.BaseURL) }}css/font-awesome-min.css">
 
@@ -29,7 +29,7 @@
   {{ else }}
     <link rel="shortcut icon" href="/favicon.ico">
 
-    {{- $styles := resources.Get "styles/main.scss" | resources.ToCSS | resources.Minify }}
+    {{- $styles := resources.Get "styles/main.scss" | css.Saas | resources.Minify }}
     <link rel="stylesheet" href="{{ $styles.RelPermalink }}">
     <link rel="stylesheet" href="/css/font-awesome-min.css">