|
@@ -4,52 +4,44 @@
|
|
|
{% set cat = item.categories|first.slug %}
|
|
|
{% endif %}
|
|
|
|
|
|
-<div class="item thumbnails col-12 col-sm-6 col-lg-4 mb-5 {{cat}}">
|
|
|
- <a href="{{site.url}}/{{item.post_name}}">
|
|
|
-
|
|
|
- <div class="__images">
|
|
|
- <div class="icone_cat {{cat}}">
|
|
|
-
|
|
|
- </div>
|
|
|
- <div class="__img">
|
|
|
- <img src="{{ Image(item.image_event).src|resize(500, 500) }}" >
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="wrap__content_proch">
|
|
|
- <div class="__title"><h5>{{item.title}}</h5></div>
|
|
|
- <div class="__content">
|
|
|
- <div class="__date">
|
|
|
- <div class="__day">
|
|
|
- {% set start = item.informations_debut_event|date("Ydj") %}
|
|
|
- {% set end = item.informations_fin_event|date("Ydj") %}
|
|
|
-
|
|
|
- {% if start == end %}
|
|
|
- <span class="start">
|
|
|
- Le <time>{{item.informations_debut_event|date("j F Y") }}</time>
|
|
|
- de <time>{{item.informations_debut_event|date("G:i")}}</time>
|
|
|
- </span>
|
|
|
- <span class="end">
|
|
|
- à <time>{{item.informations_fin_event|date("G:i")}}</time>
|
|
|
- </span>
|
|
|
-
|
|
|
- {% else %}
|
|
|
-
|
|
|
- <span class="start">
|
|
|
- Du <time>{{item.informations_debut_event|date("j F Y") }}</time>
|
|
|
- à <time>{{item.informations_debut_event|date("G:i")}}</time>
|
|
|
- </span>
|
|
|
- <span class="end">
|
|
|
- <br>Au <time>{{item.informations_fin_event|date("j F Y") }}</time>
|
|
|
- à <time>{{item.informations_fin_event|date("G:i")}}</time></br>
|
|
|
- </span>
|
|
|
-
|
|
|
- {% endif %}
|
|
|
- </div>
|
|
|
+<article class="thumbnails col {{cat}}">
|
|
|
+ <a rel="noreferrer" href="{{site.url}}/{{item.post_name}}">
|
|
|
+
|
|
|
+ <figure>
|
|
|
+ <span class="icone_cat {{cat}}"></span>
|
|
|
+ <img src="{{ Image(item.image_event).src }}">
|
|
|
+ </figure>
|
|
|
+
|
|
|
+ <div class="wrap_content">
|
|
|
+ <h5>{{item.title}}</h5>
|
|
|
+ <div class="content">
|
|
|
+ <div class="date">
|
|
|
+ {% set start = item.informations_debut_event|date("Ydj") %}
|
|
|
+ {% set end = item.informations_fin_event|date("Ydj") %}
|
|
|
+ {% if start == end %}
|
|
|
+ <span class="start">
|
|
|
+ Le <time datetime="{{item.informations_debut_event|date("j F Y")}}">{{item.informations_debut_event|date("j F Y") }}</time>
|
|
|
+ de <time datetime="{{item.informations_debut_event|date("G:i")}}">{{item.informations_debut_event|date("G:i")}}</time>
|
|
|
+ </span>
|
|
|
+ <span class="end">
|
|
|
+ à <time datetime="{{item.informations_fin_event|date("G:i")}}">{{item.informations_fin_event|date("G:i")}}</time>
|
|
|
+ </span>
|
|
|
+
|
|
|
+ {% else %}
|
|
|
+
|
|
|
+ <span class="start">
|
|
|
+ Du <time datetime="{{item.informations_debut_event|date("j F Y") }}">{{item.informations_debut_event|date("j F Y") }}</time>
|
|
|
+ à <time datetime="{{item.informations_debut_event|date("G:i")}}">{{item.informations_debut_event|date("G:i")}}</time>
|
|
|
+ </span>
|
|
|
+ <span class="end">
|
|
|
+ <br>Au <time datetime="{{item.informations_fin_event|date("j F Y") }}">{{item.informations_fin_event|date("j F Y") }}</time>
|
|
|
+ à <time datetime="{{item.informations_fin_event|date("G:i")}}">{{item.informations_fin_event|date("G:i")}}</time></br>
|
|
|
+ </span>
|
|
|
+
|
|
|
+ {% endif %}
|
|
|
</div>
|
|
|
-
|
|
|
- <div class="lieu">{{item.informations_lieu}}</div>
|
|
|
+ <div class="places">{{item.informations_lieu}}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</a>
|
|
|
-</div>
|
|
|
+</article>
|