pelican-theme-bootstrap4/templates/includes/article_info.html

44 lines
1.7 KiB
HTML
Raw Permalink Normal View History

2019-04-19 18:30:55 +00:00
<footer class="post-info">
<span class="label label-default">{{ _('Date') }}:</span>
<span class="published">
<i class="fa fa-calendar"></i><time datetime="{{ article.date.isoformat() }}">&nbsp;{{ article.locale_date }}</time>
</span>
{% if SHOW_DATE_MODIFIED %}
{% if article.modified %}
2019-04-20 06:31:28 +00:00
<span class="label label-default"> | {{ _('Modified') }}</span>
2019-04-19 18:30:55 +00:00
<span class="modified">
<i class="fa fa-calendar"></i><time datetime="{{ article.modified.isoformat() }}"> {{ article.locale_modified }}</time>
</span>
{% endif %}
{% endif %}
{% if SHOW_SERIES %}
{% if article.series %}
2019-04-20 06:31:28 +00:00
<span class="label label-default"> | {{ _('Series') }}</span>
2019-04-19 18:30:55 +00:00
Part {{ article.series.index}} of {{ article.series.name }}
{% endif %}
{% endif %}
{% if SHOW_ARTICLE_AUTHOR %}
{% if article.author %}
2019-04-20 06:31:28 +00:00
<span class="label label-default"> | {{ _('By') }}</span>
2019-04-19 18:30:55 +00:00
<a href="{{ SITEURL }}/{{ article.author.url }}"><i class="fa fa-user"></i> {{ article.author }}</a>
{% endif %}
{% endif %}
{% if SHOW_ARTICLE_CATEGORY %}
2019-04-20 06:31:28 +00:00
<span class="label label-default"> | {{ _('Category') }}</span>
2019-04-19 18:30:55 +00:00
<a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
{% endif %}
{% if PDF_PROCESSOR %}
2019-04-20 06:31:28 +00:00
<span class="label label-default"> | {{ _('Download') }}
<a href="{{ SITEURL }}/pdf/{{ article.slug }}.pdf"><i class="fa fa-file-pdf-o"></i></a>
2019-04-19 18:30:55 +00:00
</span>
{% endif %}
{% include 'includes/taglist.html' %}
{% import 'includes/translations.html' as translations with context %}
{{ translations.translations_for(article) }}
</footer><!-- /.post-info -->