Add support for CC licenses
Added support for creative commons licenses using cc-tools. https://github.com/hlapp/cc-tools
This commit is contained in:
parent
a63b8b7924
commit
2499947c60
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
[submodule "templates/cc-tools"]
|
||||
path = templates/cc-tools
|
||||
url = https://github.com/hlapp/cc-tools
|
1
templates/cc-tools
Submodule
1
templates/cc-tools
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit f3e13c0884f18fcc48bcfafe6ffccac335beb253
|
@ -1,4 +1,10 @@
|
||||
<p class="copyright text-muted">
|
||||
Blog powered by <a href="http://getpelican.com">Pelican</a>,
|
||||
which takes great advantage of <a href="http://python.org">Python</a>.
|
||||
which takes great advantage of <a href="http://python.org">Python</a>. <br />
|
||||
{%- if CC_LICENSE or CC_LICENSE_DERIVATIVES or CC_LICENSE_COMMERCIAL %}
|
||||
{% from 'cc-tools/cc-license.html' import cc_license_mark %}
|
||||
{{ cc_license_mark(cc_name=CC_LICENSE,derivatives=CC_LICENSE_DERIVATIVES,commercial=CC_LICENSE_COMMERCIAL,attr_markup=CC_ATTR_MARKUP,attr_props={'title':SITENAME,'name':article.author if article else AUTHOR,'url':SITEURL}) }}
|
||||
{% else %}
|
||||
© {{ copy_date }} {{ AUTHOR }}
|
||||
{% endif %}
|
||||
</p>
|
||||
|
Loading…
Reference in New Issue
Block a user