From c96606961e1459a85b50a2b9d0227b796f7ab79e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristi=C3=A1n=20Donoso?= Date: Sun, 28 Jan 2024 17:37:30 -0500 Subject: [PATCH] Fix context given to customs_css Due to scoping thing, we were passing down a string rather than the full context. --- layouts/_default/baseof.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index f099d35..a0ea0d9 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,3 +1,5 @@ +{{ $rootCtx := . }} + @@ -14,7 +16,7 @@ {{ $style := resources.Get "scss/style.scss" | resources.ExecuteAsTemplate "css/style.css" . | toCSS | minify | fingerprint -}} {{- range .Params.custom_css -}} -{{ $c_css := resources.Get . | resources.ExecuteAsTemplate "css/style.css" . | toCSS | minify | fingerprint -}} +{{ $c_css := resources.Get . | resources.ExecuteAsTemplate "css/style.css" $rootCtx | toCSS | minify | fingerprint -}} {{- end -}} {{- block "head" . -}}{{- end -}}