add article date field

This commit is contained in:
Tobias Brunner 2025-07-04 15:51:44 +02:00
parent 470887c34e
commit 6351da70ee
No known key found for this signature in database
6 changed files with 42 additions and 19 deletions

View file

@ -16,9 +16,7 @@
<div class="d-flex justify-content-center align-items-center gap-3 text-sm">
<span>By {{ article.author.get_full_name|default:article.author.username }}</span>
<span></span>
<span>{{ article.created_at|date:"M d, Y" }}</span>
{% if article.updated_at != article.created_at %}
{% endif %}
<span>{{ article.article_date|date:"M d, Y" }}</span>
</div>
</div>
</header>

View file

@ -169,7 +169,7 @@
By {{ article.author.get_full_name|default:article.author.username }}
</span>
<span class="text-muted ms-2">
{{ article.created_at|date:"M d, Y" }}
{{ article.article_date|date:"M d, Y" }}
</span>
</p>
</div>