Merge pull request #61 from ptigwe/cc-license

Add support for CC licenses
This commit is contained in:
Gilson Filho 2017-04-12 12:22:08 -03:00 committed by GitHub
commit 175b0671ae
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"> <p class="copyright text-muted">
Blog powered by <a href="http://getpelican.com">Pelican</a>, 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> </p>