Add an option to host CC icon rather than querying an external service
See #112 for more context on this.
This commit is contained in:
parent
89141fa644
commit
9d6a8f7c29
7 changed files with 5 additions and 1 deletions
BIN
static/img/cc/by-nc-nd.png
Normal file
BIN
static/img/cc/by-nc-nd.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 435 B |
BIN
static/img/cc/by-nc-sa.png
Normal file
BIN
static/img/cc/by-nc-sa.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 444 B |
BIN
static/img/cc/by-nc.png
Normal file
BIN
static/img/cc/by-nc.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 429 B |
BIN
static/img/cc/by-nd.png
Normal file
BIN
static/img/cc/by-nd.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 428 B |
BIN
static/img/cc/by-sa.png
Normal file
BIN
static/img/cc/by-sa.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 429 B |
BIN
static/img/cc/by.png
Normal file
BIN
static/img/cc/by.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 410 B |
|
@ -9,7 +9,11 @@
|
||||||
<img alt="Creative Commons License"
|
<img alt="Creative Commons License"
|
||||||
title="Creative Commons License"
|
title="Creative Commons License"
|
||||||
style="border-width:0"
|
style="border-width:0"
|
||||||
src="https://i.creativecommons.org/l/{{ CC_LICENSE['slug'] }}/{{ CC_LICENSE['version'] }}/80x15.png"
|
{% if HOST_CC_ICON %}
|
||||||
|
src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/img/cc/{{ CC_LICENSE['slug'] }}.png"
|
||||||
|
{% else %}
|
||||||
|
src="https://i.creativecommons.org/l/{{ CC_LICENSE['slug'] }}/{{ CC_LICENSE['version'] }}/80x15.png"
|
||||||
|
{% endif %}
|
||||||
width="80"
|
width="80"
|
||||||
height="15"/>
|
height="15"/>
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Reference in a new issue