diff options
author | Justin Mayer <entroP@gmail.com> | 2016-04-29 09:23:44 -0700 |
---|---|---|
committer | Justin Mayer <entroP@gmail.com> | 2016-04-29 09:23:44 -0700 |
commit | 5c5fe8dcaf0ec34aac37cf18e5b55ea21f9d8f77 (patch) | |
tree | 927539b1d77514d31a1dde5268a9bd048b019762 /pelican-bootstrap3/templates/includes/series.html | |
parent | 2cd39ad5c0c03818900611ddee699b2a6acc2453 (diff) | |
parent | 22e33297f8484d0c531120db0dcc3b76f6c2a1b8 (diff) | |
download | pelican-themes-5c5fe8dcaf0ec34aac37cf18e5b55ea21f9d8f77.zip pelican-themes-5c5fe8dcaf0ec34aac37cf18e5b55ea21f9d8f77.tar.gz pelican-themes-5c5fe8dcaf0ec34aac37cf18e5b55ea21f9d8f77.tar.bz2 |
Merge pull request #383 from DandyDev/update-pelican-bootstrap3
Update pelican-bootstrap3 to newest version; donate to Pelican community
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..3998440 --- /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 %} |