diff options
author | Zachary Betz <zwbetz@gmail.com> | 2019-01-24 05:25:29 +0300 |
---|---|---|
committer | Zachary Betz <zwbetz@gmail.com> | 2019-01-24 05:25:29 +0300 |
commit | 358aed95c65274de72c3737730e56c00ccc1fb24 (patch) | |
tree | 7bf955688b3472d52281bc2c357c4423ed427e56 | |
parent | 9b4976aeb1d68d26c377da791b071b23f0d075b3 (diff) |
Config option to hide footer
-rw-r--r-- | exampleSite/config.toml | 3 | ||||
-rw-r--r-- | exampleSite/config.yaml | 3 | ||||
-rw-r--r-- | layouts/partials/footer.html | 4 |
3 files changed, 7 insertions, 3 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 1df45c9..0c3eb6d 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -51,4 +51,5 @@ googleAnalytics = "UA-123456789-1" containerMaxWidth = "700px" dateFormat = "Jan 2, 2006" homeText = "Welcome to the Vanilla theme demo. Have a look around. Maybe even eat some ice cream." - footerText = "Made with [Hugo](https://gohugo.io/) & [Vanilla](https://github.com/zwbetz-gh/vanilla-bootstrap-hugo-theme)"
\ No newline at end of file + footerText = "Made with [Hugo](https://gohugo.io/) & [Vanilla](https://github.com/zwbetz-gh/vanilla-bootstrap-hugo-theme)" + hideFooter = false
\ No newline at end of file diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 38a9c77..365b142 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -47,4 +47,5 @@ params: containerMaxWidth: 700px dateFormat: Jan 2, 2006 homeText: Welcome to the Vanilla theme demo. Have a look around. Maybe even eat some ice cream. - footerText: Made with [Hugo](https://gohugo.io/) & [Vanilla](https://github.com/zwbetz-gh/vanilla-bootstrap-hugo-theme)
\ No newline at end of file + footerText: Made with [Hugo](https://gohugo.io/) & [Vanilla](https://github.com/zwbetz-gh/vanilla-bootstrap-hugo-theme) + hideFooter: false
\ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index df6a059..203d7bd 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,5 +1,7 @@ +{{ if ne .Site.Params.hideFooter true }} <footer id="footer" class="mt-auto text-center text-muted"> <div class="container"> {{ .Site.Params.footerText | markdownify }} </div> -</footer>
\ No newline at end of file +</footer> +{{ end }}
\ No newline at end of file |