birdcat.online/themes/aviary/layouts/partials/head/css.html

13 lines
559 B
HTML
Raw Permalink Normal View History

2024-07-04 20:44:05 -04:00
{{ $opts := dict "transpiler" "libsass" "targetPath" "css/style.css" }}
{{- with resources.Get "css/main.scss" }}
2024-04-17 20:19:12 -04:00
{{- if eq hugo.Environment "development" }}
2024-07-04 20:44:05 -04:00
{{- with . | toCSS $opts | fingerprint }}
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
{{- end }}
2024-04-17 20:19:12 -04:00
{{- else }}
2024-07-04 20:44:05 -04:00
{{- with . | toCSS $opts | minify | fingerprint }}
2024-04-17 20:19:12 -04:00
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
{{- end }}
{{- end }}
{{- end }}