28 lines
934 B
HTML
28 lines
934 B
HTML
<!-- {{- with resources.Get "css/main.css" }}
|
|
{{- 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 }} -->
|
|
|
|
|
|
{{ with resources.Get "sass/main.scss" }}
|
|
{{ $opts := dict
|
|
"enableSourceMap" (not hugo.IsProduction)
|
|
"outputStyle" (cond hugo.IsProduction "compressed" "expanded")
|
|
"targetPath" "css/main.css"
|
|
"transpiler" "libsass"
|
|
}}
|
|
{{ with . | toCSS $opts }}
|
|
{{ if hugo.IsProduction }}
|
|
{{ with . | fingerprint }}
|
|
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
|
|
{{ end }}
|
|
{{ else }}
|
|
<link rel="stylesheet" href="{{ .RelPermalink }}">
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|