2023-08-12 16:45:00 +01:00
|
|
|
{{ if and (not hugo.IsProduction) (eq hugo.Environment "theme")}}
|
|
|
|
{{ $styles := resources.Get "css/styles.css" }}
|
|
|
|
{{ $styles = $styles | resources.PostCSS (dict "inlineImports" true) }}
|
2023-08-09 22:57:43 +01:00
|
|
|
<link href="{{ $styles.RelPermalink }}" rel="stylesheet" />
|
|
|
|
{{ else }}
|
2023-08-12 16:45:00 +01:00
|
|
|
{{ $styles := resources.Get "css/compiled/main.css" }}
|
2023-08-09 22:57:43 +01:00
|
|
|
{{ $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 }}
|