change config format

This commit is contained in:
2025-04-15 21:44:14 +00:00
parent dca9541eee
commit 6fac717306
5 changed files with 33 additions and 20 deletions

View File

@@ -6,7 +6,7 @@
<!-- prettier-ignore -->
<title>{{ if not .IsHome }}{{ .LinkTitle | humanize }} - {{ end }}{{ .Site.Title }}</title>
{{ $opts := dict "transpiler" "libsass" "targetPath" "_style.css" }}
{{ with resources.Get "css/index.scss" | toCSS $opts | minify | fingerprint }}
{{ with resources.Get "css/index.scss" | resources.ExecuteAsTemplate "" . | toCSS $opts | minify | fingerprint }}
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" />
{{ end }}
{{ range resources.Match "favicon/*.png" }}