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/3] 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 @@
+ {% if config.extra.footer_content_license %} +
Except where otherwise noted, content on this site is licensed under a + {% if config.extra.footer_content_license_link %} + {{config.extra.footer_content_license}} + {% else %} + {{config.extra.footer_content_license}} + {% endif %} + license.
+ {% endif %}
-

Licensed under MIT
+

Theme and color theme licensed under MIT
Built with Zola using anemone theme & veqev colors.

From fe99d05a55ad7d9cc4ca6521a02d6abfdac36702 Mon Sep 17 00:00:00 2001 From: Adam McKellar Date: Wed, 7 Feb 2024 01:25:52 +0100 Subject: [PATCH 2/3] Update README.md fixed typo Co-authored-by: louib --- 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 From 90e365b1f726d3cc9d59ab1c405a3a8cf7c9fa08 Mon Sep 17 00:00:00 2001 From: Adam McKellar Date: Wed, 7 Feb 2024 14:26:02 +0100 Subject: [PATCH 3/3] Added point after MIT. Just cause. --- templates/footer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/footer.html b/templates/footer.html index 587a8dc..2d746e2 100644 --- a/templates/footer.html +++ b/templates/footer.html @@ -10,7 +10,7 @@ license.
{% endif %}
-

Theme and color theme licensed under MIT
+

Theme and color theme licensed under MIT.
Built with Zola using anemone theme & veqev colors.