From da921622640dcd8312383628a163fb6c07e13264 Mon Sep 17 00:00:00 2001 From: hossainemruz Date: Wed, 22 Jul 2020 22:23:54 +0600 Subject: [PATCH] Allow hiding newsletter section from footer --- exampleSite/config.yaml | 5 +++++ layouts/partials/footer.html | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 005b519..ae42c45 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -52,6 +52,11 @@ params: - name: Notes url: https://hossainnotes.netlify.app/docs/example/ + # Provide newsletter configuration. This feature hasn't been implemented yet. + # Currently, you can just hide it from the footer. + newsletter: + enable: true + # some information about you author: name: "Jane Doe" diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 3d53e0e..8a6230d 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -24,6 +24,7 @@ {{ end }} + {{ if .Site.Params.newsletter.enable }}

Stay up to date with email notification

@@ -43,6 +44,7 @@
+ {{ end }}
@@ -50,7 +52,7 @@