From a3dd8c11f0c723d7aa9e7dfba6ce68159f26f8ed Mon Sep 17 00:00:00 2001 From: panr Date: Thu, 4 Nov 2021 23:44:21 +0100 Subject: [PATCH] set default values for FullWidthTheme and CenterTheme. fixes 278 --- layouts/_default/baseof.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 44edc4a..ae3b9cc 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -7,7 +7,7 @@ {{ partial "head.html" . }} -{{ $container := cond $.Site.Params.FullWidthTheme "container full" (cond $.Site.Params.CenterTheme "container center" "container") }} +{{ $container := cond ($.Site.Params.FullWidthTheme | default false) "container full" (cond ($.Site.Params.CenterTheme | default false) "container center" "container") }}