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