forked from drowl87/hextra_mirror

* update dev and build command chore: move contents to exampleSite chore: add configs to exampleSite chore: use tailwindcss/nesting * add postcss-import * move imports to the top chore: add config for theme dev chore: add compiled css chore: fix last updated issue chore: dont't ignore hugo_stats.json chore: update index page layout
11 lines
576 B
HTML
11 lines
576 B
HTML
{{ if and (not hugo.IsProduction) (eq hugo.Environment "theme")}}
|
|
{{ $styles := resources.Get "css/styles.css" }}
|
|
{{ $styles = $styles | resources.PostCSS (dict "inlineImports" true) }}
|
|
<link href="{{ $styles.RelPermalink }}" rel="stylesheet" />
|
|
{{ else }}
|
|
{{ $styles := resources.Get "css/compiled/main.css" }}
|
|
{{ $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 }}
|