diff options
author | Justin Mayer <entroP@gmail.com> | 2014-11-02 14:50:05 -0800 |
---|---|---|
committer | Justin Mayer <entroP@gmail.com> | 2014-11-02 14:50:05 -0800 |
commit | 29c29da8ede2d6a4c80d4500d9ace6c5e863fd99 (patch) | |
tree | 8579e38cc960301eb467bc8ef2fb0bc5568e075b /pelican-bootstrap3/templates/includes/series.html | |
parent | 6d4054e466ac9293a294d079692162f05fb11157 (diff) | |
parent | 3f875b51644b2fa26110b2c307f43832386e9ed2 (diff) | |
download | pelican-themes-29c29da8ede2d6a4c80d4500d9ace6c5e863fd99.zip pelican-themes-29c29da8ede2d6a4c80d4500d9ace6c5e863fd99.tar.gz pelican-themes-29c29da8ede2d6a4c80d4500d9ace6c5e863fd99.tar.bz2 |
Merge pull request #269 from lgiordani/series_plugin
[pelican-bootstrap3] 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 %} |