From 6e5ca298e77d40db542e83a29015596f1a745bad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Sat, 12 Aug 2023 13:13:03 +0200 Subject: [PATCH] siteparam: avoid halt if param is a map/slice #611 --- layouts/partials/shortcodes/siteparam.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/partials/shortcodes/siteparam.html b/layouts/partials/shortcodes/siteparam.html index 179361cf0b..e477be730f 100644 --- a/layouts/partials/shortcodes/siteparam.html +++ b/layouts/partials/shortcodes/siteparam.html @@ -11,5 +11,7 @@ {{- $params = index . (lower $paramName) }} {{- end }} {{- end }} -{{- $params | .RenderString }} +{{- if $params }} + {{- $params | .RenderString }} +{{- end }} {{- end }} \ No newline at end of file