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:
Tobenna P. Igwe 2017-04-10 04:51:13 +01:00
parent a63b8b7924
commit 2499947c60
3 changed files with 11 additions and 1 deletions

3
.gitmodules vendored Normal file
View 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

@ -0,0 +1 @@
Subproject commit f3e13c0884f18fcc48bcfafe6ffccac335beb253

View File

@ -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; {{ copy_date }} {{ AUTHOR }}
{% endif %}
</p>