1
0
mirror of https://github.com/arsenetar/pelican-red.git synced 2026-01-23 15:11:38 +00:00

Move utility templates to prefix '_', add footer utility templates.

Utility templates moved to have '_' prefix similar to how sass files are.
Aditional templates for article and page footer contents now used to load
comments etc.
This commit is contained in:
2013-07-14 00:55:29 -04:00
parent b03fd560b6
commit f2cc7ba260
8 changed files with 47 additions and 23 deletions

View File

@@ -0,0 +1,14 @@
{# Items to include at the bottom of a single page #}
{# PDF links #}
{% if PDF_PROCESSOR %}
<a href="{{ SITEURL }}/pdf/{{ page.slug }}.pdf">PDF</a>
{% endif %}
{# Copyright notice and link #}
{% if COPYRIGHTS and (COPYRIGHT_PAGE or page.copyright) %}
<a href="{{ COPYRIGHTS[page.copyright|default(DEFAULT_COPYRIGHT)][1] }}">{{ COPYRIGHTS[page.copyright|default(DEFAULT_COPYRIGHT)][0] }}</a>
{% endif %}
{# Comments #}
{% if ( page.comments == True or ( page.comments is not defined and COMMENTS_PAGE == True ) ) and DISQUS_SN %}
{% include '_disqus.html' %}
{% endif %}