fix: footer enable flag logic issue (#125)

This commit is contained in:
Xin 2023-10-03 08:51:41 +01:00 committed by GitHub
parent 1b932f260a
commit 924d8508d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,9 @@
<body dir="ltr">
{{- 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 }}
</body>
{{ partial "scripts.html" . }}
</html>