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}">

View File

@@ -1,7 +1,7 @@
.news-detail__title {
max-width: 900px;
margin: auto;
margin-bottom: 2rem;
margin-bottom: 0rem !important;
font-size: 3rem;
text-align: left;
@@ -10,6 +10,13 @@
}
}
.news-detail__time {
display: block;
max-width: 900px;
margin: auto;
margin-bottom: 2rem;
}
.news-detail__main-image {
max-width: 900px;
margin: auto;