From a425a0680cb350873a04becb5186aa1aad152538 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Sat, 12 Nov 2022 23:21:21 +0100 Subject: [PATCH] theme: reduce calls to output-format.hugo II #380 --- layouts/partials/stylesheet.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 }}