Commit 93f7d444 authored by Marcus M. Scheunemann's avatar Marcus M. Scheunemann

simplify/SEOfy link structure, customise footer

parent 9ed55432
......@@ -51,6 +51,26 @@ EXTRA_PATH_METADATA = {
'extra/robots.txt': {'path': 'robots.txt'},
}
##
# link structure
##
PAGE_URL = '{slug}'
PAGE_SAVE_AS = '{slug}/index.html'
ARTICLE_SAVE_AS = '{slug}/index.html'
ARTICLE_URL = '{slug}/'
CATEGORY_URL = '{slug}'
CATEGORY_SAVE_AS = '{slug}/index.html'
TAG_URL = 'tag/{slug}'
TAG_SAVE_AS = 'tag/{slug}/index.html'
# not created as single author page
AUTHOR_URL = ''
AUTHOR_SAVE_AS = ''
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True
......
{% set copy_date = (all_articles[0].date.strftime('%Y') if all_articles else articles[0].date.strftime('%Y')) %}
<footer>
<hr>
<div class="row">
<div class="col-lg-9 text-center">
<p><small>
{%- if CC_LICENSE or CC_LICENSE_DERIVATIVES or CC_LICENSE_COMMERCIAL %}
{% from 'include/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 %}
</small></p>
</div>
</div>
</footer>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment