10 lines
438 B
HTML
10 lines
438 B
HTML
{{ $opts := dict "transpiler" "libsass" "targetPath" "css/style.css" }}
|
|
{{- with resources.Get "css/main.scss" | toCSS $opts }}
|
|
{{- 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 }}
|