added time for event posts
format publish for posts
This commit is contained in:
parent
4da92b87f2
commit
297a7bd356
@ -6,7 +6,7 @@
|
||||
<div class="[ post__body ]">
|
||||
<h1>{{ title }}</h1>
|
||||
<div class="post-info">
|
||||
Publié le <strong>{{ date}}</strong>{%if author %} | {{ author }}{% endif %}
|
||||
Publié le <strong>{{ date | dateFilter }}</strong>{%if author %} | {{ author }}{% endif %}
|
||||
</div>
|
||||
{% if illustration %}
|
||||
<img class="post-pic" src="{{ illustration }}" alt="illustration de l'article">
|
||||
|
@ -8,6 +8,9 @@
|
||||
</h3>
|
||||
<p class="news-list__item-date">
|
||||
<time datetime="{{ item.date | w3DateFilter }}">{{ item.date | dateFilter }}</time>
|
||||
{% if item.data.time %}
|
||||
<time datetime="{{ item.data.time }}">{{ item.data.time }}</time>
|
||||
{% endif %}
|
||||
</p>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
@ -48,6 +48,11 @@
|
||||
border-radius: 0 0 1rem 1rem;
|
||||
padding: 1rem 1.5rem;
|
||||
margin-top: auto;
|
||||
display: flex;
|
||||
|
||||
time + time {
|
||||
margin-left: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user