Add support of licence

This commit is contained in:
Adrien Beudin 2016-04-01 20:52:04 +02:00
parent 31b0da1a2e
commit c976b03b28
3 changed files with 13 additions and 2 deletions

View File

@ -132,6 +132,17 @@ settings:
theme: material
```
##### Licence
By default Prosopopée use CC-BY-SA for all the content, if you want use a another licence
you need add key in **root** settings.yaml. For example:
```yaml
licences:
name: WTFPL
url: "http://www.wtfpl.net/txt/copying/"
```
### Gallery settings.yaml
This settings.yaml will describe:

View File

@ -28,7 +28,7 @@
{% endblock %}
<footer>
<p>Generated using <a href="https://github.com/psycojoker/prosopopee">Prosopopée</a> · content under <a href="https://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA</a> · atom logo by <a href="https://thenounproject.com/jjjon/">Jonathan Li</a> under <a href="https://creativecommons.org/licenses/by/3.0/">CC-BY</a></p>
<p>Generated using <a href="https://github.com/psycojoker/prosopopee">Prosopopée</a> · content under <a href={% if settings.licence.url %}"{{ settings.licence.url }}"{% else %}"https://creativecommons.org/licenses/by-sa/3.0/"{% endif %}>{% if settings.licence.name %}{{ settings.licence.name }}{% else %}CC-BY-SA{% endif %}</a> · atom logo by <a href="https://thenounproject.com/jjjon/">Jonathan Li</a> under <a href="https://creativecommons.org/licenses/by/3.0/">CC-BY</a></p>
</footer>
</body>
</html>

View File

@ -1,7 +1,7 @@
<footer class="page-footer blue-grey darken-1">
<div class="footer-copyright blue-grey darken-2">
<div class="container center">
Generated using <a href="https://github.com/psycojoker/prosopopee">Prosopopée</a> · content under <a href="https://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA</a> · atom logo by <a href="https://thenounproject.com/jjjon/">Jonathan Li</a> under <a href="https://creativecommons.org/licenses/by/3.0/">CC-BY</a>
Generated using <a href="https://github.com/psycojoker/prosopopee">Prosopopée</a> · content under <a href={% if settings.licence.url %}"{{ settings.licence.url }}"{% else %}"https://creativecommons.org/licenses/by-sa/3.0/"{% endif %}>{% if settings.licence.name %}{{ settings.licence.name }}{% else %}CC-BY-SA{% endif %}</a> · atom logo by <a href="https://thenounproject.com/jjjon/">Jonathan Li</a> under <a href="https://creativecommons.org/licenses/by/3.0/">CC-BY</a>
</div>
</div>
</footer>