From 3442d5cb528c83c07123257503259ea654bed6e1 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Thu, 2 Sep 2021 20:19:52 +0530 Subject: [PATCH] Allow hiding copyright/footer text closes: #543 --- layouts/_default/baseof.html | 2 +- layouts/partials/footer.html | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 86db932..37c595b 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -17,7 +17,7 @@
{{- block "main" . }}{{ end }}
- {{ partialCached "footer.html" . .Layout .Kind -}} + {{ partialCached "footer.html" . .Layout .Kind (.Param "hideFooter") -}} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 2c1113c..3cebf48 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,3 +1,4 @@ +{{- if not (.Param "hideFooter") }} +{{- end }} {{- if (not .Site.Params.disableScrollToTop) }}