zhouji 211d835f30 Make neighbors plugin support translated articles. il y a 10 ans
..
Readme.rst 9e70c17839 import plugins from core and restructure repo il y a 11 ans
__init__.py 9e70c17839 import plugins from core and restructure repo il y a 11 ans
neighbors.py 211d835f30 Make neighbors plugin support translated articles. il y a 10 ans

Readme.rst

Neighbor Articles Plugin for Pelican
====================================

This plugin adds ``next_article`` (newer) and ``prev_article`` (older)
variables to the article's context

Usage
-----

.. code-block:: html+jinja


    {% if article.prev_article %}


  • {{ article.prev_article.title }}


  • {% endif %}
    {% if article.next_article %}


  • {{ article.next_article.title }}


  • {% endif %}