From 66ab981bc44b2c07817615f326e46d3293af3a0a Mon Sep 17 00:00:00 2001 From: romanc Date: Sun, 12 Apr 2020 16:51:05 +0200 Subject: Add Site.Params to disable search and copyright This PR adds site parameters to optionally disable the search field and the copyright notice. Both options are enabled by default to keep current default behavior. --- layouts/partials/footer.html | 3 +++ layouts/partials/nav.html | 2 ++ 2 files changed, 5 insertions(+) (limited to 'layouts') diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 82b537b..dd2d222 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,5 +1,8 @@ +{{ if .Site.Params.enableCopyright | default true }} +{{ end }} + diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index 971f9a6..befe10e 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -9,7 +9,9 @@ {{ .Site.Title }} Logo + {{ if .Site.Params.enableSearch | default true }} {{- partial "search.html" . }} + {{ end }}