From 203c5c9205b45560f361a02cdf08326186231f71 Mon Sep 17 00:00:00 2001 From: Dwayne Charrington Date: Mon, 16 Dec 2024 10:07:44 +1000 Subject: [PATCH] fix(header): clean up css includes and logic --- .../aurelia-theme/layouts/partials/head.html | 10 ---------- .../layouts/partials/head/css.html | 18 +++++++++--------- 2 files changed, 9 insertions(+), 19 deletions(-) diff --git a/themes/aurelia-theme/layouts/partials/head.html b/themes/aurelia-theme/layouts/partials/head.html index 7bbadbb..b80f815 100644 --- a/themes/aurelia-theme/layouts/partials/head.html +++ b/themes/aurelia-theme/layouts/partials/head.html @@ -18,14 +18,4 @@ {{ partialCached "head/css.html" . }} {{ partialCached "head/js.html" . }} -{{ $styles := resources.Get "css/main.css" }} -{{ $styles = $styles | css.TailwindCSS }} - -{{ if hugo.IsProduction }} - {{ $styles = $styles | minify | fingerprint }} - -{{ else }} - -{{ end }} - diff --git a/themes/aurelia-theme/layouts/partials/head/css.html b/themes/aurelia-theme/layouts/partials/head/css.html index 91b928d..63bb28a 100644 --- a/themes/aurelia-theme/layouts/partials/head/css.html +++ b/themes/aurelia-theme/layouts/partials/head/css.html @@ -1,9 +1,9 @@ -{{- with resources.Get "css/main.css" }} - {{- if eq hugo.Environment "development" }} - - {{- else }} - {{- with . | minify | fingerprint }} - - {{- end }} - {{- end }} -{{- end }} +{{ $styles := resources.Get "css/main.css" }} +{{ $styles = $styles | css.TailwindCSS }} + +{{ if hugo.IsProduction }} + {{ $styles = $styles | minify | fingerprint }} + +{{ else }} + +{{ end }} \ No newline at end of file