fix: add news time in detail view
This commit is contained in:
parent
baa233dd98
commit
6f9ed95263
2 changed files with 12 additions and 1 deletions
|
|
@ -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}">
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue