diff options
Diffstat (limited to 'layouts/partials/head/styles.html')
| -rw-r--r-- | layouts/partials/head/styles.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/layouts/partials/head/styles.html b/layouts/partials/head/styles.html new file mode 100644 index 0000000..68577ce --- /dev/null +++ b/layouts/partials/head/styles.html @@ -0,0 +1,13 @@ +{{/* Resources */}} +{{- $tailwind := resources.Get "css/tailwind.css" | postCSS (dict "config" "./config/postcss.config.js") -}} + +{{/* Processor */}} +{{- $styles := slice $tailwind | resources.Concat "css/app.css" -}} + +{{/* Output */}} +{{- if eq hugo.Environment "development" -}} +<link rel="stylesheet" href="{{ $styles.Permalink | absURL }}"> +{{- else -}} +{{- $styles := $styles | minify | fingerprint | resources.PostProcess -}} +<link rel="stylesheet" href="{{ $styles.Permalink }}" integrity="{{ $styles.Data.Integrity }}" > +{{- end -}} |
