forked from drowl87/hextra_mirror
11 lines
505 B
HTML
11 lines
505 B
HTML
![]() |
{{ $options := dict "inlineImports" true }}
|
||
|
{{ $styles := resources.Get "css/styles.css" }}
|
||
|
{{ $styles = $styles | resources.PostCSS $options }}
|
||
|
{{ if not hugo.IsProduction }}
|
||
|
<link href="{{ $styles.RelPermalink }}" rel="stylesheet" />
|
||
|
{{ else }}
|
||
|
{{ $styles = $styles | minify | fingerprint | resources.PostProcess }}
|
||
|
<link rel="preload" href="{{ $styles.RelPermalink }}" as="style" />
|
||
|
<link href="{{ $styles.RelPermalink }}" rel="stylesheet" integrity="{{ $styles.Data.integrity }}" />
|
||
|
{{ end }}
|