{% extends "include/base.html" %} {% block body %} {{ SITENAME }} {% with article = articles | first %} {% include "include/article.html" %} {% endwith %} {% if "archives" in DIRECT_TEMPLATES and articles %} Archives {% endif %} {% if "authors" in DIRECT_TEMPLATES and authors %} Authors {% endif %} {% if categories %} {% if "categories" in DIRECT_TEMPLATES or DISPLAY_CATEGORIES_ON_MENU %} {% if "categories" in DIRECT_TEMPLATES %} Categories {% else %} Categories {% endif %} {% if DISPLAY_CATEGORIES_ON_MENU %} {% for category_articles in categories %} {{ category_articles[0].name }} {% endfor %} {% endif %} {% endif %} {% endif %} {% if "tags" in DIRECT_TEMPLATES and tags %} Tags {% endif %} {% if pages %} {% if "pages" in DIRECT_TEMPLATES or DISPLAY_PAGES_ON_MENU %} {% if "pages" in DIRECT_TEMPLATES %} Pages {% else %} Pages {% endif %} {% if DISPLAY_PAGES_ON_MENU %} {% for page in pages %} {{ page.title }} {% endfor %} {% endif %} {% endif %} {% endif %} {% endblock %}