
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.
10 lines
311 B
HTML
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 %}
|