2023-12-08 12:05:04 +01:00
|
|
|
{{ $options := (dict "targetPath" "css/styles.css" "outputStyle" "compressed") }}
|
|
|
|
{{ $style := resources.Get "sass/main.scss" | toCSS $options | minify }}
|
|
|
|
{{- with $style }}
|
2023-12-08 10:56:22 +01:00
|
|
|
{{- if eq hugo.Environment "development" }}
|
|
|
|
<link rel="stylesheet" href="{{ .RelPermalink }}">
|
|
|
|
{{- else }}
|
|
|
|
{{- with . | minify | fingerprint }}
|
|
|
|
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|