diff options
author | Leonardo Giordani <giordani.leonardo@gmail.com> | 2014-11-02 23:44:44 +0100 |
---|---|---|
committer | Leonardo Giordani <giordani.leonardo@gmail.com> | 2014-11-02 23:44:44 +0100 |
commit | 3f875b51644b2fa26110b2c307f43832386e9ed2 (patch) | |
tree | c7c4a36725fb1541e335276884d053cc1724120f /pelican-bootstrap3/templates/includes/series.html | |
parent | 228b474cdbf25303dac8e3a375efa4d5c8ab19ac (diff) | |
download | pelican-themes-3f875b51644b2fa26110b2c307f43832386e9ed2.tar.gz |
Added support for series plugin
Diffstat (limited to 'pelican-bootstrap3/templates/includes/series.html')
-rw-r--r-- | pelican-bootstrap3/templates/includes/series.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/pelican-bootstrap3/templates/includes/series.html b/pelican-bootstrap3/templates/includes/series.html new file mode 100644 index 0000000..24729a2 --- /dev/null +++ b/pelican-bootstrap3/templates/includes/series.html @@ -0,0 +1,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 %} |