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