fix: add news time in detail view
This commit is contained in:
@@ -40,6 +40,10 @@
|
|||||||
|
|
||||||
<!-- News title -->
|
<!-- News title -->
|
||||||
<h1 class="news-detail__title">{newsItem.title}</h1>
|
<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 -->
|
<!-- Teaser text -->
|
||||||
<f:if condition="{newsItem.teaser}">
|
<f:if condition="{newsItem.teaser}">
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
.news-detail__title {
|
.news-detail__title {
|
||||||
max-width: 900px;
|
max-width: 900px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
margin-bottom: 2rem;
|
margin-bottom: 0rem !important;
|
||||||
font-size: 3rem;
|
font-size: 3rem;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
|
||||||
@@ -10,6 +10,13 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.news-detail__time {
|
||||||
|
display: block;
|
||||||
|
max-width: 900px;
|
||||||
|
margin: auto;
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
.news-detail__main-image {
|
.news-detail__main-image {
|
||||||
max-width: 900px;
|
max-width: 900px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
|
|||||||
Reference in New Issue
Block a user