tinytechbureau.com/themes/ttb/layouts/partials/head/css.html

12 lines
454 B
HTML
Raw Normal View History

2024-06-29 22:08:20 +00:00
{{- 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 }}