diff --git a/layouts/404.html b/layouts/404.html index 050950a38d..f319b3241a 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -1,5 +1,6 @@ -{{- partialCached "page-meta.hugo" . . }} +{{- partialCached "page-meta.hugo" . . }} +{{- $outputFormat := partial "output-format.hugo" . }} {{- partial "meta.html" . }} @@ -12,7 +13,7 @@ {{ .Scratch.Get "title" }} {{ default "::" .Site.Params.titleSeparator }} {{ .Site.Title }} {{- partialCached "favicon.html" . }} - {{- partial "stylesheet.html" . }} + {{- partialCached "stylesheet.html" (dict "page" . "outputFormat" $outputFormat) $outputFormat }}