mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
11 lines
799 B
HTML
11 lines
799 B
HTML
|
{{ if eq (hugo.Environment) "development" -}}
|
||
|
{{ $options := (dict "targetPath" "main.css" "enableSourceMap" true "includePaths" (slice "node_modules")) -}}
|
||
|
{{ $css := resources.Get "scss/app.scss" | toCSS $options -}}
|
||
|
<link rel="stylesheet" href="{{ $css.Permalink | relURL }}">
|
||
|
{{ else -}}
|
||
|
{{ $options := (dict "targetPath" "main.css" "outputStyle" "compressed" "includePaths" (slice "node_modules")) -}}
|
||
|
{{ $css := resources.Get "scss/app.scss" | toCSS $options | postCSS (dict "config" "config/postcss.config.js") -}}
|
||
|
{{ $secureCSS := $css | resources.Fingerprint "sha512" -}}
|
||
|
<link rel="stylesheet" href="{{ $secureCSS.Permalink }}" integrity="{{ $secureCSS.Data.Integrity }}" crossorigin="anonymous">
|
||
|
{{ end -}}
|
||
|
<noscript><style>img.lazyload { display: none; }</style></noscript>
|