diff options
author | David Robillard <d@drobilla.net> | 2014-11-21 01:12:26 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-11-21 01:12:26 -0500 |
commit | d38c4094a1aef8be93218adeefe66b20308d96e3 (patch) | |
tree | 7f1d451dd1edade63567504c67b61bbc24d7c683 /themes/lv2/templates/includes/series.html | |
download | lv2site-d38c4094a1aef8be93218adeefe66b20308d96e3.tar.xz |
Initial website Markdown conversion.
Diffstat (limited to 'themes/lv2/templates/includes/series.html')
-rw-r--r-- | themes/lv2/templates/includes/series.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/themes/lv2/templates/includes/series.html b/themes/lv2/templates/includes/series.html new file mode 100644 index 0000000..24729a2 --- /dev/null +++ b/themes/lv2/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 %} |