forked from varia/varia.website
many many many Varia's websites, work in progress: https://many.vvvvvvaria.org
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
909 B
27 lines
909 B
7 years ago
|
Multi parts posts
|
||
|
-----------------
|
||
|
|
||
|
**This plugin has been deprecated. See the series plugin for a better support of multi part articles.**
|
||
|
|
||
|
The multi-part posts plugin allow you to write multi-part posts.
|
||
|
|
||
|
In order to mark posts as part of a multi-part post, use the `:parts:` metadata:
|
||
|
|
||
|
:parts: MY_AWESOME_MULTI_PART_POST
|
||
|
|
||
|
You can then use the `article.metadata.parts_articles` variable in your templates
|
||
|
to display other parts of current post.
|
||
|
|
||
|
For example:
|
||
|
|
||
|
{% if article.metadata.parts_articles %}
|
||
|
<p>This post is part of a series:</p>
|
||
|
<ol class="parts">
|
||
|
{% for part_article in article.metadata.parts_articles %}
|
||
|
<li {% if part_article == article %}class="active"{% endif %}>
|
||
|
<a href='{{ SITEURL }}/{{ part_article.url }}'>{{ part_article.title }}</a>
|
||
|
</li>
|
||
|
{% endfor %}
|
||
|
</ol>
|
||
|
{% endif %}
|