added time for event posts

format publish for posts
This commit is contained in:
Yves Gatesoupe 2020-07-16 22:28:40 +02:00
parent 4da92b87f2
commit 297a7bd356
3 changed files with 9 additions and 1 deletions

View File

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

View File

@ -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 %}

View File

@ -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;
}
} }
} }