aboutsummaryrefslogtreecommitdiffstats
path: root/pelican-bootstrap3/templates/includes/series.html
blob: 3998440034600df6b2a7a02a72a33f3cdeb2a582 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{% if article.series %}
<section class="well" id="related-posts">
   {% set text = SERIES_TEXT|default('Part %(index)s of the %(name)s series') %}
    <h4>{{ text|format(index=article.series.index, name=article.series.name) }}</h4>
    {% if article.series.all_previous %}
       <h5>Previous articles</h5>
       <ul>
       {% for article in article.series.all_previous %}
           <li><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></li>
       {% endfor %}
       </ul>
    {% endif %}
    {% if article.series.all_next %}
       <h5>Next articles</h5>
       <ul>
       {% for article in article.series.all_next %}
           <li><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></li>
       {% endfor %}
       </ul>
    {% endif %}
</section>
{% endif %}