bug fix angenda+sidebar

This commit is contained in:
2019-06-08 18:00:55 +02:00
parent b3800e5e04
commit 5c8f37419f
5 changed files with 42 additions and 25 deletions

View File

@@ -29,9 +29,9 @@
{% embed 'partials/layout.html.twig' with {blog: page} %}
{% block item %}
{% for child in page.find('/agenda').children %}
{% for child in page.find('/agenda').children.order('date','desc') %}
{% if child.header.date_end|date("ymd") <= "now"|date("ymd") %}
{% if child.header.date|date("ymd") <= "now"|date("ymd") %}
{% include 'partials/cal-list-event.html.twig' with {blog: page, page: child} %}
{% endif %}