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

@ -2,16 +2,14 @@
{{- $links := index $header "links" }}
{{ $template := resources.Get "scss/progressbar.scss" }}
{{ if $template }}
{{ $progressbar := $template | resources.ExecuteAsTemplate "css/progressbar.scss" . | resources.ToCSS (dict
"outputStyle" "compressed") | fingerprint }}
{{ $progressbar := $template | resources.ExecuteAsTemplate "css/progressbar.scss" . | css.Sass (dict "outputStyle" "compressed") | fingerprint }}
<link rel="stylesheet" type="text/css" href="{{ $progressbar.RelPermalink }}">
{{ end }}
<div class="progress"></div>
{{ if $header.enabled }}
{{ $template := resources.Get "scss/header.scss" }}
{{ if $template }}
{{ $index := $template | resources.ExecuteAsTemplate "css/header.scss" . | resources.ToCSS (dict "outputStyle"
"compressed") | fingerprint }}
{{ $index := $template | resources.ExecuteAsTemplate "css/header.scss" . | css.Sass (dict "outputStyle" "compressed") | fingerprint }}
<link rel="stylesheet" type="text/css" href="{{ $index.RelPermalink }}">
{{ end }}
<header class="header" id="header">