diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 829e96b..a8fca97 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -32,20 +32,25 @@
{{- $customCss := resources.Get "css/custom.css" -}}
{{- $variablesCss := resources.Get "css/variables.css" | resources.ExecuteAsTemplate "css/variables.css" . -}}
- {{- if and (not hugo.IsProduction) (eq hugo.Environment "theme") }}
+ {{- /* Production build */ -}}
+ {{- if hugo.IsProduction }}
+ {{- $styles := slice $variablesCss $mainCss $customCss | resources.Concat "css/compiled/main.css" | minify | fingerprint }}
+
+
+
+ {{- /* Theme development mode (non-production + theme environment) */ -}}
+ {{- else if eq hugo.Environment "theme" }}
{{- $devStyles := resources.Get "css/styles.css" | postCSS (dict "inlineImports" true) }}
+
+
+
+ {{- /* User local development */ -}}
{{- else }}
- {{- if hugo.IsProduction }}
- {{- $styles := slice $variablesCss $mainCss $customCss | resources.Concat "css/compiled/main.css" | minify | fingerprint }}
-
-
- {{- else }}
- {{- $styles := resources.Get "css/compiled/main.css" -}}
-
-
-
- {{- end }}
+ {{- $styles := resources.Get "css/compiled/main.css" -}}
+
+
+
{{- end }}