add article + a venir
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
{% set options = { items: {'@page.children': '/agenda'} } %}
|
||||
{% set h2 = h2 ?: 'h2' %}
|
||||
{% set h3 = h3 ?: 'h3' %}
|
||||
@@ -10,10 +9,14 @@
|
||||
{% set this_month = "now"|date('M') %}
|
||||
{% set this_day = "now"|date('d') %}
|
||||
|
||||
{% for p in page.collection(options).dateRange( this_day ~ this_month ~ this_year, '12/31/' ~ this_year).slice(0, 3).order('date', 'asc') %}
|
||||
{% set next_year = "+1 year"|date('Y')%}
|
||||
|
||||
{% for p in page.collection(options).dateRange( this_day ~ this_month ~ this_year, '12/31/' ~ next_year).slice(0, 3).order('date', 'asc') %}
|
||||
<div class="side-agenda">
|
||||
<a href="{{p.url}}">
|
||||
{% include 'partials/blog/date.html.twig' with {page: p} %}
|
||||
<div class="date">
|
||||
{% include 'partials/blog/date.html.twig' with {page: p} %}
|
||||
</div>
|
||||
<{{h3}}>{{p.title}}</{{h3}}>
|
||||
{{p.summary(70)}}
|
||||
</a>
|
||||
@@ -22,5 +25,4 @@
|
||||
<div class="side-all-agenda">
|
||||
<a href="/agenda">voir tout l'agenda</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user