fix: add news time in detail view
All checks were successful
Build / build (push) Successful in 4m11s
Build / deploy-stage (push) Successful in 2m50s
Build / switch-stage (push) Successful in 1m58s

This commit is contained in:
2024-12-16 22:23:20 +01:00
parent baa233dd98
commit 6f9ed95263
2 changed files with 12 additions and 1 deletions

View File

@@ -40,6 +40,10 @@
<!-- News title -->
<h1 class="news-detail__title">{newsItem.title}</h1>
<time class="news-detail__time" itemprop="datePublished" datetime="{f:format.date(date:newsItem.datetime, format:'Y-m-d')}">
<f:format.date format="{f:translate(key:'dateFormat')}">{newsItem.datetime}</f:format.date>
</time>
<!-- Teaser text -->
<f:if condition="{newsItem.teaser}">