I am using pelican jinja2 templates in order to generate a navigation menu based on the category and I need a way to control the order of the pages, or at least a trick to a
You can get sorting using Pelican's custom page metadata and Jinja2's built-in sort filter.
Example template:
{% for pg in PAGES|sort(attribute='sortorder') %}
- {{ pg.title }}
{% endfor %}
Example page metadata:
title: User's Manual
date: 2014-06-11 15:11
sortorder: 20