page.html: add support for multiple subtitles

This commit is contained in:
Zankaria 2025-04-24 14:07:47 +02:00
parent 7ea504c7d3
commit d10968a669

View File

@ -16,8 +16,14 @@
<h1>{{ title }}</h1> <h1>{{ title }}</h1>
<div class="subtitle"> <div class="subtitle">
{% if subtitle %} {% if subtitle %}
{% if subtitle is iterable %}
{% for s in subtitle %}
{{ s }}{% if not loop.last %}<br>{% endif %}
{% endfor %}
{% else %}
{{ subtitle }} {{ subtitle }}
{% endif %} {% endif %}
{% endif %}
{% if mod and not hide_dashboard_link %}<p><a href="?/">{% trans %}Return to dashboard{% endtrans %}</a></p>{% endif %} {% if mod and not hide_dashboard_link %}<p><a href="?/">{% trans %}Return to dashboard{% endtrans %}</a></p>{% endif %}
</div> </div>
</header> </header>