{% extends 'base.html' %} {% block title %} All Categories · {{ super() }} {% endblock title %} {% block head_description %} All categories of the {{ SITENAME|striptags|e }} blog. {% endblock head_description %} {% block meta_tags_in_head %} {{ super() }} {% from '_includes/_defaults.html' import FEATURED_IMAGE with context %} {% if FEATURED_IMAGE %} {% endif %} {% endblock meta_tags_in_head %} {% block feed_links %} {{ super() }} {% include '_includes/feeds_categories.html' %} {% endblock feed_links %} {% block content %}
{% for category, articles in categories %} {# ~ is used for concatenation. I have added an empty string "" because without it Jinja does not convert second operand into string #} {% set collapse_id = category.slug ~ '-ref' ~ "" %} {% set collapse_ref = '#' ~ collapse_id ~ "" %} {% set heading_id = "heading-" ~ category.slug ~ "" %} {% endfor %}
{% endblock content %} {% block script %} {{ super() }} {% endblock script %}