embed css

This commit is contained in:
2025-04-03 19:42:44 +00:00
parent 0e4e0963a0
commit 99a3c69818

View File

@@ -4,8 +4,9 @@
<meta charset="utf-8"> <meta charset="utf-8">
{{ partial "html-meta.html" . -}} {{ partial "html-meta.html" . -}}
<title>{{ if not .IsHome }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title> <title>{{ if not .IsHome }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title>
{{ $css := resources.Get "_/styles.scss" | css.Sass (dict "enableSourceMap" false "transpiler" "dartsass") | resources.Fingerprint }} {{ with resources.Get "_/styles.scss" | css.Sass (dict "enableSourceMap" false "transpiler" "dartsass" "outputStyle" "compressed") }}
<link rel="stylesheet" href="{{ $css.RelPermalink }}"> <style>{{ .Content | safeCSS }}</style>
{{ end }}
{{ with .Site.Params.favicon -}} {{ with .Site.Params.favicon -}}
<link rel="shortcut icon" href="{{ . }}" type="image/x-icon"> <link rel="shortcut icon" href="{{ . }}" type="image/x-icon">
{{ end -}} {{ end -}}