pyro/templates/category.html
Freyja Wildes ff8ea9f339 [category] Add category description
The template for category now looks for a dict CATEGORY_DESCRIPTIONS
where are store the descriptions of the categories. The name of the
category must match the one used in article.
2025-04-28 04:37:39 +02:00

10 lines
311 B
HTML

{% extends 'index.html' %}
{% block page_title %}{{ super() }} — {{ category|striptags }}{% endblock page_title %}
{% block title %}
<h2>{{ category }}</h2>
{% if CATEGORY_DESCRIPTIONS[category|string] %}
<p class="subtitle">
{{ CATEGORY_DESCRIPTIONS[category|string] }}
</p>
{% endif %}
{% endblock title %}