CHANGE sass function the comply to >0.128 hugo

This commit is contained in:
Hoernschen 2025-04-17 17:23:28 +02:00
parent 01dcf04b8a
commit 470eb1a169
Signed by: hoernschen
GPG key ID: 37591FAF4E6D3462
5 changed files with 12 additions and 14 deletions

View file

@ -28,13 +28,14 @@
{{ end }}
<link rel="stylesheet" type="text/css" href="/icons/fontawesome.css" />
{{ $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 }}
<link rel="stylesheet" type="text/css" href="{{ $index.RelPermalink }}" />
{{ 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 }}
<link rel="stylesheet" type="text/css" href="{{ $totop.RelPermalink }}" />
{{ end }}
</head>