mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy.org.git
synced 2024-09-19 18:07:52 +00:00
12 lines
615 B
HTML
12 lines
615 B
HTML
|
|
||
|
{{ $scssMain := "scss/main.scss"}}
|
||
|
{{ if not hugo.IsProduction }}
|
||
|
{{/* Note the missing postCSS. This makes it snappier to develop in Chrome, but makes it look sub-optimal in other browsers. */}}
|
||
|
{{ $css := resources.Get $scssMain | toCSS (dict "enableSourceMap" true) }}
|
||
|
<link href="{{ $css.RelPermalink }}" rel="stylesheet">
|
||
|
{{ else }}
|
||
|
{{ $css := resources.Get $scssMain | toCSS (dict "enableSourceMap" false) | postCSS | minify | fingerprint }}
|
||
|
<link rel="preload" href="{{ $css.RelPermalink }}" as="style">
|
||
|
<link href="{{ $css.RelPermalink }}" rel="stylesheet" integrity="{{ $css.Data.integrity }}">
|
||
|
{{ end }}
|