diff --git a/layouts/partials/stylesheet.html b/layouts/partials/stylesheet.html
index a2847716f3..ea2654a1a4 100644
--- a/layouts/partials/stylesheet.html
+++ b/layouts/partials/stylesheet.html
@@ -14,9 +14,10 @@
- {{- $f := printf "/static/css/format-%s.css" (partial "output-format.hugo" .) }}
+ {{- $outputFormat := partial "output-format.hugo" . }}
+ {{- $f := printf "/static/css/format-%s.css" $outputFormat }}
{{- if partialCached "fileExists.hugo" $f $f }}
-
+
{{- end }}