From db10e62c04745ab045f7efd2f88970398c781802 Mon Sep 17 00:00:00 2001 From: Niels Reijn Date: Mon, 8 Feb 2021 16:10:14 +0100 Subject: [PATCH 1/3] 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 }} From 9388f295b2e0e97d3824a783ec0a7b86f130c265 Mon Sep 17 00:00:00 2001 From: Niels Reijn Date: Mon, 8 Feb 2021 17:05:40 +0100 Subject: [PATCH 2/3] Further improve footer --- exampleSite/config.toml | 7 +++++-- layouts/partials/footer.html | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index c1bf583..019a764 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -94,11 +94,14 @@ disableHugoGeneratorInject = false # If you want, you can easily override the default footer with your own content. # [params.footer] + trademark = false rss = false copyright = false author = false - lowerText = ["Powered by Hugo", - "Made with ❤ by Djordje Atlialp"] + + topText = ["Powered by Hugo"] + bottomText = ["Powered by Hugo", + "Made with ❤ by Djordje Atlialp"] # Colors for favicons # diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 8fb42ff..41b83cb 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,13 +1,16 @@