{% from 'includes/sidebar/macros.jinja' import title %} {% for title, link in MENUITEMS %}
  • {{ title }}
  • {% endfor %} {% if not PAGES_SORT_ATTRIBUTE -%} {% set PAGES_SORT_ATTRIBUTE = 'title' %} {%- endif %} {% if DISPLAY_PAGES_ON_MENU %} {% for p in pages | sort(attribute=PAGES_SORT_ATTRIBUTE) %} {% if p.url %}
  • {{ p.menulabel|default(p.title) }}
  • {% endif %} {% endfor %} {% endif %} {% if DISPLAY_CATEGORIES_ON_MENU %} {% for cat, null in categories %}
  • {{ cat | capitalize }}
  • {% endfor %} {% endif %}