Hide CC icon

Fix #223
This commit is contained in:
Alexandre Vicenzi 2021-02-04 22:06:02 +01:00
parent d885544fdf
commit 23ac7c30a4
2 changed files with 3 additions and 0 deletions

View file

@ -58,6 +58,7 @@ CC_LICENSE = {
"name": "Creative Commons Attribution-ShareAlike", "name": "Creative Commons Attribution-ShareAlike",
"version": "4.0", "version": "4.0",
"slug": "by-sa", "slug": "by-sa",
"icon": True,
} }
COPYRIGHT_YEAR = datetime.now().year COPYRIGHT_YEAR = datetime.now().year

View file

@ -3,6 +3,7 @@
</p> </p>
{% include "partial/flex.html" %} {% include "partial/flex.html" %}
<p> <p>
{% if CC_LICENSE['icon'] != False %}
<a rel="license" <a rel="license"
href="http://creativecommons.org/licenses/{{ CC_LICENSE['slug'] }}/{{ CC_LICENSE['version'] }}/" href="http://creativecommons.org/licenses/{{ CC_LICENSE['slug'] }}/{{ CC_LICENSE['version'] }}/"
target="_blank"> target="_blank">
@ -17,6 +18,7 @@
width="80" width="80"
height="15"/> height="15"/>
</a> </a>
{% endif %}
{% if STATUSCAKE %} {% if STATUSCAKE %}
{% include "partial/statuscake.html" %} {% include "partial/statuscake.html" %}
{% endif %} {% endif %}