Merge pull request #290 from fghaas/tox-plus-series
Support the Series plugin
This commit is contained in:
commit
0006c3e6db
4 changed files with 69 additions and 0 deletions
|
@ -83,6 +83,29 @@
|
|||
<div class="addthis_relatedposts_inline"></div>
|
||||
{% endif %}
|
||||
|
||||
{% if article.series %}
|
||||
<div class="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 %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if GOOGLE_ADSENSE and GOOGLE_ADSENSE.ads.article_bottom %}
|
||||
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
||||
<ins class="adsbygoogle ads-responsive"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue