diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..df014c5 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "templates/cc-tools"] + path = templates/cc-tools + url = https://github.com/hlapp/cc-tools diff --git a/templates/cc-tools b/templates/cc-tools new file mode 160000 index 0000000..f3e13c0 --- /dev/null +++ b/templates/cc-tools @@ -0,0 +1 @@ +Subproject commit f3e13c0884f18fcc48bcfafe6ffccac335beb253 diff --git a/templates/footer.html b/templates/footer.html index b0a7065..3606cb9 100644 --- a/templates/footer.html +++ b/templates/footer.html @@ -1,4 +1,10 @@
Blog powered by Pelican,
- which takes great advantage of Python.
+ which takes great advantage of Python.
+ {%- 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 %}