tinytechbureau.com/themes/ttb/layouts/partials/head/css.html
2024-06-30 00:08:20 +02:00

12 lines
454 B
HTML

{{- with resources.Get "scss/style.scss" }}
{{ $style := . | resources.ToCSS | resources.Minify | resources.Fingerprint }}
{{- if eq hugo.Environment "development" }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
{{- else }}
{{- with . | minify | fingerprint }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}" integrity="{{ $style.Data.Integrity }}" crossorigin="anonymous">
{{- end }}
{{- end }}
{{- end }}