fix agenda archive && thumbnails

This commit is contained in:
Tessier
2020-09-21 12:55:26 +02:00
parent 7f3fb7facb
commit 6de32791c3
20 changed files with 172 additions and 152 deletions
@@ -1,7 +1,7 @@
{% extends "base.twig" %}
{% block content %}
{% include 'components/title_page.twig' %}
{% set now = 'now'|date('Ydj') %}
{% set now = 'now'|date('Ymd') %}
<section class="row filter">
<ul class="d-flex flex-wrap">
@@ -15,7 +15,7 @@
{% set newArray = [] %}
{% for cat in posts %}
{% set term = cat.categories|last.slug %}
{% set end = cat.informations_fin_event|date("Ydj") %}
{% set end = cat.informations_fin_event|date("Ymd") %}
{% if term not in newArray and now >= end %}
<li data-filter=".{{cat.categories|last.slug}}" >
@@ -29,7 +29,7 @@
<section class="row grid">
{% for item in posts %}
{% set end = item.informations_fin_event|date("Ydj") %}
{% set end = item.informations_fin_event|date("Ymd") %}
{% if now >= end %}
{% include 'components/thumbnails/thumbnails.twig'%}
{% endif %}