Files
pelican-plugins/pelicanext/multi_part
FELD Boris d5b5b4f545 Add a multi_part plugin
It list all parts of a blog post, helping to create a navigation menu between all the parts
2013-03-25 09:46:29 -07:00
..
2013-03-25 09:46:29 -07:00
2013-03-25 09:46:29 -07:00

Multi parts posts

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.related_posts variable in your templates to display other parts of current post. For example:

{% if article.metadata.parts_articles %}
    <ol class="parts">
    <li>Post parts</li>
    {% for part_article in article.metadata.parts_articles %}
        {% if part_article == article %}
            <li class="active">
                <a href='{{ SITEURL }}/{{ part_article.url }}'>{{ part_article.title }}
                </a>
            </li>
        {% else %}
            <li>
                <a href='{{ SITEURL }}/{{ part_article.url }}'>{{ part_article.title }}
                </a>
            </li>
        {% endif %}
    {% endfor %}
    </ol>
{% endif %}