From 7c8f61dd9d2d44c2ca5888741a014b05730a936f Mon Sep 17 00:00:00 2001 From: Adam McKellar <100924950+WyvernIXTL@users.noreply.github.com> Date: Tue, 23 Jan 2024 23:49:18 +0100 Subject: [PATCH 1/2] Added optional generation of div in footer to display content license information. --- README.md | 1 + config.toml | 6 +++++- templates/footer.html | 11 ++++++++++- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 221e8ff..3c62d4d 100644 --- a/README.md +++ b/README.md @@ -114,6 +114,7 @@ toc = true - Set the `author` in both the main config and in pages' metadata. - Use the `image` variable in pages to add an image to HTML `` tags. - Similarly, set `favicon` in the main config, and it will be used as the site icon. +- Set `footer_content_license` and `footer_content_license_link` if you wish to display conent license information in the footer. #### Disable Twitter Card diff --git a/config.toml b/config.toml index 284b43e..02702a1 100644 --- a/config.toml +++ b/config.toml @@ -45,4 +45,8 @@ header_nav = [ { url = "/about", name_en = "/about/", name_fr = "/concernant/" }, { url = "/journal", name_en = "/journal/", name_fr = "/journal/" }, { url = "/blog", name_en = "/blog/", name_fr = "/blog/" } -] \ No newline at end of file +] + +# Optional footer license text. It will only show, when using footer_content_license. +#footer_content_license = "Creative Commons Attribution 4.0 International" +#footer_content_license_link = "https://creativecommons.org/licenses/by/4.0/" diff --git a/templates/footer.html b/templates/footer.html index 8839867..587a8dc 100644 --- a/templates/footer.html +++ b/templates/footer.html @@ -1,7 +1,16 @@
Licensed under MIT
+
Theme and color theme licensed under MIT
Built with Zola using anemone theme & veqev colors.
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 3c62d4d..0f0c811 100644
--- a/README.md
+++ b/README.md
@@ -114,7 +114,7 @@ toc = true
- Set the `author` in both the main config and in pages' metadata.
- Use the `image` variable in pages to add an image to HTML `` tags.
- Similarly, set `favicon` in the main config, and it will be used as the site icon.
-- Set `footer_content_license` and `footer_content_license_link` if you wish to display conent license information in the footer.
+- Set `footer_content_license` and `footer_content_license_link` if you wish to display content license information in the footer.
#### Disable Twitter Card