Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zwbetz-gh/vanilla-bootstrap-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZachary Betz <zwbetz@gmail.com>2019-01-24 05:25:29 +0300
committerZachary Betz <zwbetz@gmail.com>2019-01-24 05:25:29 +0300
commit358aed95c65274de72c3737730e56c00ccc1fb24 (patch)
tree7bf955688b3472d52281bc2c357c4423ed427e56
parent9b4976aeb1d68d26c377da791b071b23f0d075b3 (diff)
Config option to hide footer
-rw-r--r--exampleSite/config.toml3
-rw-r--r--exampleSite/config.yaml3
-rw-r--r--layouts/partials/footer.html4
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