{% extends "base.html" %} {% block content %}
{% block content_header %}

{{ SITENAME }}

{% endblock content_header %} {% block content_body %} {% if articles %} {% for article in (articles_page.object_list if articles_page else articles) %}
{{ article.date.strftime('%Y-%m-%d') }}
{% if NIUX2_CATEGORY_MAP and NIUX2_CATEGORY_MAP[article.category] %} {% set my_cat = NIUX2_CATEGORY_MAP[article.category][0] %} {% set my_cat_icon = NIUX2_CATEGORY_MAP[article.category][1] %} {% else %} {% set my_cat = article.category %} {% set my_cat_icon = "icon-folder-open" %} {% endif %} {{ article.html_h1 | default(article.title) }}
{% endfor %} {%endif%} {% endblock content_body %}
{% block pager %} {# N: pagination length n: number of pages x: current page number pager bar style: 1 2 ... x-N/2+3 ~ x+N/2-4 ... n-1 n-2 compare x-N/2-3 == 3 and x+N/2-4 == n-1 #} {% if articles_page and articles_paginator.num_pages > 1 %} {% endif %} {% endblock pager %} {% endblock content %}