Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/apvarun/showcase-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r--layouts/partials/head.html11
1 files changed, 9 insertions, 2 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index c58f796..66f973b 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -11,8 +11,15 @@
/>
{{ end }}
<title>{{ .Site.Title }}</title>
- <!-- Tailwind CSS JIT CDN -->
- <script src="https://unpkg.com/tailwindcss-jit-cdn@1.3.0/dist/tailwindcss-jit-cdn.umd.min.js"></script>
+
+ {{ $styles := resources.Get "css/main.css" | postCSS (dict "config" "./postcss.config.js") }}
+
+ {{ if .Site.IsServer }}
+ <link rel="stylesheet" href="{{ $styles.RelPermalink }}"/>
+ {{ else }}
+ {{ $styles := $styles | minify | fingerprint | resources.PostProcess }}
+ <link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Integrity }}"/>
+ {{ end }}
<style>
@font-face {