From 4e714b98a01a1d42ee950b4d8c6e093350b2a5b3 Mon Sep 17 00:00:00 2001 From: Skia Date: Fri, 16 Oct 2020 17:12:09 +0200 Subject: Footer improvements Add multiple new options: - sourceURL: to provide a link to the website source code - showLicenseInFooter: to display the license in the footer - copyrightStartYear: to display the copyright with a range of years --- exampleSite/config.toml | 9 +++++++++ layouts/partials/footer.html | 18 +++++++++++++----- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 5b2eafe..602cd2d 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -34,6 +34,9 @@ paginate = 10 author = "DSRKafuU" # You can also set author in post front matter individually subTitle = "A minimal Hugo theme." + # Source URL of the website, will appear in the footer + sourceURL = "https://github.com/itsme/my_blog" + # Use CloudFlare Workers to accelerate the Google Analytics # If you are using this please comment the googleAnalytics above # Check https://github.com/SukkaW/cloudflare-workers-async-google-analytics for more details @@ -48,10 +51,16 @@ paginate = 10 showWordCounter = true showReadTime = false + # License in the footer + showLicenseInFooter = false + # License at the end of each post showLicense = true showToc = true + # Copyright + copyrightStartYear = "2020" + # Open Graph & Twitter Card variables # You can also set description and images in post front matter individually description = "A minimal Hugo theme with nice theme color." diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index cb43e10..22c44a3 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,10 +1,18 @@ \ No newline at end of file + -- cgit v1.2.3