news posts now display their publish date

This commit is contained in:
eclipse 2025-03-25 11:57:01 +01:00
parent cb8fc3506c
commit 8f664ca861

View File

@ -140,11 +140,16 @@
{% endif %} {% endif %}
</div> </div>
</div> </div>
{% endblock content_body %} {% endblock content_body %}
{% block content_footer %} {% block content_footer %}
<footer class="content-footer"> <footer class="content-footer">
{% if article.category == 'Neues' %}
veröffentlicht am {{ article.date | strftime("%d.%m.%y") }}
{% else %}
<a href="/{{ article.save_as.split('/')[:-1] | join('/') }}/">&larr; {{ article.category }}</a> <a href="/{{ article.save_as.split('/')[:-1] | join('/') }}/">&larr; {{ article.category }}</a>
{% endif %}
</footer> </footer>
{% endblock content_footer %} {% endblock content_footer %}