diff --git a/README.md b/README.md index 7be1bc5..87fd310 100644 --- a/README.md +++ b/README.md @@ -138,7 +138,7 @@ By default Prosopopée use CC-BY-SA for all the content, if you want use a anoth you need add key in **root** settings.yaml. For example: ```yaml -licences: +licence: name: WTFPL url: "http://www.wtfpl.net/txt/copying/" ``` diff --git a/prosopopee/themes/exposure/templates/base.html b/prosopopee/themes/exposure/templates/base.html index ef4dffe..d98e3d4 100644 --- a/prosopopee/themes/exposure/templates/base.html +++ b/prosopopee/themes/exposure/templates/base.html @@ -1,34 +1,33 @@ - - - {% block css %} - {% endblock %} + + + {% block css %} + {% endblock %} - - - {{ settings.title }} - + + + {{ settings.title }} + - + - + - {% block content %} - {% endblock %} + {% block content %} + {% endblock %} - - + {% include 'footer.html' %} + + diff --git a/prosopopee/themes/exposure/templates/footer.html b/prosopopee/themes/exposure/templates/footer.html new file mode 100644 index 0000000..96451fe --- /dev/null +++ b/prosopopee/themes/exposure/templates/footer.html @@ -0,0 +1,11 @@ +{% if settings.licence is not defined %} +{% set licence_url = 'https://creativecommons.org/licenses/by-sa/3.0/' -%} +{% set licence_name = 'CC-BY-SA' -%} +{% else %} +{% set licence_url = settings.licence.url -%} +{% set licence_name = settings.licence.name -%} +{% endif %} + + diff --git a/prosopopee/themes/material/templates/footer.html b/prosopopee/themes/material/templates/footer.html index 73b9cea..b39989a 100644 --- a/prosopopee/themes/material/templates/footer.html +++ b/prosopopee/themes/material/templates/footer.html @@ -1,7 +1,15 @@ +{% if settings.licence is not defined %} +{% set licence_url = 'https://creativecommons.org/licenses/by-sa/3.0/' -%} +{% set licence_name = 'CC-BY-SA' -%} +{% else %} +{% set licence_url = settings.licence.url -%} +{% set licence_name = settings.licence.name -%} +{% endif %} +