1
0
mirror of https://github.com/arsenetar/pelican-red.git synced 2024-11-24 11:59:01 +00:00
pelican-red/templates/_article_footer.html
Andrew Senetar eca067ae67 Update templates
Update the templates to remove the excessive itemprop tags as it really
is not a good idea.  Cleanup a few minor things.
2013-11-09 15:57:26 -05:00

57 lines
2.2 KiB
HTML

{# Items to include at the bottom of a single article #}
<ul class='no-bullet no-margin'>
{# Translations #}
{% import 'translations.html' as translations with context %}
{{ translations.translations_for(article) }}
{# PDF links #}
{% if PDF_GENERATOR %}
<li><a href="{{ SITEURL }}/pdf/{{ article.slug }}.pdf" title="Download PDF"><i class="large icon-newspaper"></i> Download PDF</a>
{% endif %}
{# Copyright notice and link #}
{% if COPYRIGHTS and ((COPYRIGHT_ARTICLE and DEFAULT_COPYRIGHT and article.copyright is not defined) or article.copyright) %}
{% set copyright = article.copyright|default(DEFAULT_COPYRIGHT) %}
<li>Article content licensed under:
<a href="{{ COPYRIGHTS[copyright][1] }}" title="{{ COPYRIGHTS[copyright][0] }}">
{# Output creative commons icons instead of text #}
{% if 'cc' in copyright %}
<i class="large icon-cc"></i>
<i class="large icon-cc-by"></i>
{% if 'nc' in copyright %}
<i class="large icon-cc-nc"></i>
{% endif %}
{% if 'sa' in copyright %}
<i class="large icon-cc-sa"></i>
{% elif 'nd' in copyright %}
<i class="large icon-cc-nd"></i>
{% endif %}
{% else %}
{{ COPYRIGHTS[copyright][0] }}
{% endif %}
</a>
</li>
{% endif %}
{% if article.metadata.parts_articles %}
<li class="pagination-centered"><ul class="parts pagination">
{% for part_article in article.metadata.parts_articles %}
{% if part_article == article %}
<li class="current"><a title="Current Article">{{ part_article.title }}</a></li>
{% else %}
<li><a href='{{ SITEURL }}/{{ part_article.url }}'>{{ part_article.title }}</a></li>
{% endif %}
{% endfor %}
</ul></li>
{% endif %}
<li><ul class="no-bullet no-margin">
{% if article.prev_article %}
<li class="left"><a href="{{ SITEURL }}/{{ article.prev_article.url}}">{{ article.prev_article.title }} (Older)</a></li>
{% endif %}
{% if article.next_article %}
<li class="right"><a href="{{ SITEURL }}/{{ article.next_article.url}}">{{ article.next_article.title }} (Newer)</a></li>
{% endif %}
</ul></li>
{# Comments #}
{% if ( article.comments == True or ( article.comments is not defined and COMMENTS_ARTICLE == True ) ) and DISQUS_SN %}
{% include '_disqus.html' %}
{% endif %}