|
@@ -16,19 +16,23 @@
|
|
{% set posts = taxonomy.findTaxonomy({'client':tax}) %}
|
|
{% set posts = taxonomy.findTaxonomy({'client':tax}) %}
|
|
|
|
|
|
{% set disposts = {} %}
|
|
{% set disposts = {} %}
|
|
|
|
+ {% set i = 0 %}
|
|
{% for p,v in posts %}
|
|
{% for p,v in posts %}
|
|
{% if v in contents %}
|
|
{% if v in contents %}
|
|
- {% set disposts = disposts|merge({(p):v}) %}
|
|
|
|
|
|
+ {% set disposts = disposts|merge({('_'~(v.date|date("Y"))~'_'~i):v}) %}
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
+ {% set i = i+1 %}
|
|
{% endfor %}
|
|
{% endfor %}
|
|
|
|
|
|
|
|
+ {{ dump(disposts) }}
|
|
|
|
+
|
|
{% if disposts|length %}
|
|
{% if disposts|length %}
|
|
<section class="client-block client-block-text grid-block columns large-3 medium-6 small-12">
|
|
<section class="client-block client-block-text grid-block columns large-3 medium-6 small-12">
|
|
<h3>{{ tax }}</h3>
|
|
<h3>{{ tax }}</h3>
|
|
<ul>
|
|
<ul>
|
|
- {% for post in disposts %}
|
|
|
|
|
|
+ {% for key,post in disposts|ksort|reverse %}
|
|
<li class="project">
|
|
<li class="project">
|
|
- {% include 'partials/projet-block.html.twig' with {'page':post,'display':'text'} %}
|
|
|
|
|
|
+ {% include 'partials/projet-block.html.twig' with {'page':post,'display':'text',"key":key} %}
|
|
</li>
|
|
</li>
|
|
{% endfor %}
|
|
{% endfor %}
|
|
</ul>
|
|
</ul>
|