From 924d8508d0d0c6a885ac989baf0fe9d2e59e1505 Mon Sep 17 00:00:00 2001 From: Xin Date: Tue, 3 Oct 2023 08:51:41 +0100 Subject: [PATCH] fix: footer enable flag logic issue (#125) --- 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 b4a096af..f3947aec 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -4,7 +4,9 @@ {{- partial "navbar.html" . -}} {{- block "main" . }}{{ end -}} - {{- if (.Site.Params.footer.enable | default true) }}{{ partial "footer.html" . }}{{ end }} + {{- if or (eq .Site.Params.footer.enable nil) (.Site.Params.footer.enable) }} + {{ partial "footer.html" . }} + {{ end }} {{ partial "scripts.html" . }}