change agenda

This commit is contained in:
Kevin Tessier 2019-06-07 16:49:19 +02:00
parent 073eb24784
commit 6872b491c2
4 changed files with 3 additions and 20 deletions

View File

@ -1,17 +0,0 @@
---
title: 'Organisez vos événements'
media_order: imgtest2.jpg
metadata:
descrition: 'Organisez vos événements'
show_sidebar: false
content:
items:
- '@self.children'
limit: 0
order:
by: date
dir: desc
pagination: true
url_taxonomy_filters: true
---

View File

@ -19,7 +19,7 @@
<section class="body-wrapper">
{% block item %}
{% for child in collection.order('folder','asc') %}
{% if child.header.date_end|date("ymd") >= "now"|date("ymd") %}
{% if child.header.date_begin|date("ymd") >= "now"|date("ymd") %}
{% include 'partials/cal-list-event.html.twig' with {blog: page, page: child} %}
{% endif %}
{% endfor %}

View File

@ -3,7 +3,7 @@
<form action="https://kevintessier.us19.list-manage.com/subscribe/post?u=a98b763288f940083bf28857c&amp;id=96d6b6e702" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<div id="mc_embed_signup_scroll">
<label for="mce-EMAIL">Recevoir l'actualité du Campus</label></br>
<input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="email address" required>
<input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="adresse e-mail" required>
<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_a98b763288f940083bf28857c_96d6b6e702" tabindex="-1" value=""></div>
<div class="clear"><input type="submit" value="ok" name="subscribe" id="mc-embedded-subscribe" class="button"></div>
</div>

View File

@ -1,4 +1,4 @@
{% set options = { items: {'@page.children': '/agenda'}, 'limit': 3, 'order': {'by': 'date', 'dir': 'desc'} } %}
{% set options = { items: {'@page.children': '/agenda'}, 'limit': 3, 'order': {'by': 'date', 'dir': 'asc'} } %}
{% set h2 = h2 ?: 'h2' %}
{% set h3 = h3 ?: 'h3' %}