Pelican Pagination ‘Pager’

I have written a Pager for pelican and the the pelican-bootstrap3 theme some time ago. This will display a simple Newer/Older link:

<ul class="pager">
    {% if articles_page.has_previous() %}
        <li class="previous"><a href="{{ SITEURL }}/{{ articles_previous_page.url }}">&larr; Newer</a></li>
    {% else %}
        <li class="previous disabled"><a href="#">&larr; Newer</a></li>
    {% endif %}
    {% if articles_page.has_next() %}
        <li class="next"><a href="{{ SITEURL }}/{{ articles_next_page.url }}">Older &rarr;</a></li>
    {% else %}
        <li class="next disabled"><a href="#">Older &rarr;</a></li>
    {% endif %}

If you want to add a First/Latest as well, you can access their urls like this:

<li><a href="{{ SITEURL }}/{{}}">First</a></li>
<li><a href="{{ SITEURL }}/{{}}">Last</a></li>

You might want to add if, else here as well to disable or highlight them if they are currently active as well.

Happy designing :)