Skip to content

Commit

Permalink
fix: footer enable flag logic issue (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
imfing authored Oct 3, 2023
1 parent 1b932f2 commit 924d850
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit 924d850

Please sign in to comment.