fix licence integration
This commit is contained in:
parent
1883eeffe2
commit
aba2e4fc59
@ -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:
|
you need add key in **root** settings.yaml. For example:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
licences:
|
licence:
|
||||||
name: WTFPL
|
name: WTFPL
|
||||||
url: "http://www.wtfpl.net/txt/copying/"
|
url: "http://www.wtfpl.net/txt/copying/"
|
||||||
```
|
```
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
{% block css %}
|
{% block css %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
@ -8,9 +8,9 @@
|
|||||||
<!--Let browser know website is optimized for mobile-->
|
<!--Let browser know website is optimized for mobile-->
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||||
<title>{{ settings.title }}</title>
|
<title>{{ settings.title }}</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div class="gallery-header">
|
<div class="gallery-header">
|
||||||
{% block logo %}
|
{% block logo %}
|
||||||
@ -27,8 +27,7 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
<footer>
|
{% include 'footer.html' %}
|
||||||
<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>
|
||||||
</body>
|
|
||||||
</html>
|
</html>
|
||||||
|
11
prosopopee/themes/exposure/templates/footer.html
Normal file
11
prosopopee/themes/exposure/templates/footer.html
Normal file
@ -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 %}
|
||||||
|
|
||||||
|
<footer>
|
||||||
|
<p>Generated using <a href="https://github.com/psycojoker/prosopopee">Prosopopée</a> · content under <a href="{{ licence_url }}">{{ licence_name }}</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>
|
@ -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 %}
|
||||||
|
|
||||||
<footer class="page-footer blue-grey darken-1">
|
<footer class="page-footer blue-grey darken-1">
|
||||||
<div class="footer-copyright blue-grey darken-2">
|
<div class="footer-copyright blue-grey darken-2">
|
||||||
<div class="container center">
|
<div class="container center">
|
||||||
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>
|
Generated using <a href="https://github.com/psycojoker/prosopopee">Prosopopée</a> · content under <a href="{{ licence_url }}">{{ licence_name }}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user