diff --git a/README.md b/README.md index 221e8ff..0f0c811 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 content 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 316e2e3..b1491ab 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 the MIT License.
+

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