aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/head/styles.html
blob: 68577ce175feead431107a30fc3a11e7011c4619 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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 -}}