bootstrap4-theme/templates/includes/sidebar/series.html

25 lines
811 B
HTML
Raw Permalink Normal View History

2019-04-19 18:30:55 +00:00
{% if DISPLAY_SERIES_ON_SIDEBAR and article and article.series %}
{% from 'includes/sidebar/macros.jinja' import title %}
<!-- Sidebar/Series -->
<li class="list-group-item">
<h4>{{ title(_('Series'), DISABLE_SIDEBAR_TITLE_ICONS, icon='tags') }}</h4>
<ul class="list-group">
{% if article.series.previous %}
<li class="list-group-item">
<h5></i>{{ _('Previous article') }}</h5>
<a href="{{ SITEURL }}/{{ article.series.previous.url }}">{{ article.series.previous.title }}</a>
</li>
{% endif %}
{% if article.series.next %}
<li class="list-group-item">
<h5>{{ _('Next article') }}</h5>
<a href="{{ SITEURL }}/{{ article.series.next.url }}">{{ article.series.next.title }}</a>
</li>
{% endif %}
</ul>
</li>
<!-- End Sidebar/Series -->
{% endif %}