From db10e62c04745ab045f7efd2f88970398c781802 Mon Sep 17 00:00:00 2001 From: Niels Reijn Date: Mon, 8 Feb 2021 16:10:14 +0100 Subject: [PATCH] Better footer customization --- exampleSite/config.toml | 8 ++++++-- layouts/partials/footer.html | 13 +++++++------ 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 46394ad..c1bf583 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -93,8 +93,12 @@ disableHugoGeneratorInject = false # Custom footer # If you want, you can easily override the default footer with your own content. # - # footerLeft = "Powered by Hugo" - # footerRight = "Made with ❤ by Djordje Atlialp" + [params.footer] + rss = false + copyright = false + author = false + lowerText = ["Powered by Hugo", + "Made with ❤ by Djordje Atlialp"] # Colors for favicons # diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 857104b..8fb42ff 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -2,15 +2,16 @@ + {{with .Site.Params.footer.lowerText}} + {{ end }}