first commit

This commit is contained in:
armansansd
2023-07-12 16:31:19 +01:00
commit 3424b1927b
23306 changed files with 2217776 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
{% extends 'partials/base.html.twig' %}
{% block content %}
{% set c = grav.uri.param('cat') %}
{% if c == null %}
{% set sessions = page.find("\/actualites").collection() %}
{% else %}
{% set sessions = page.find("\/actualites").collection({'items':{'@taxonomy':{'category': c}}, 'limit': 5 ,'order': {'by': 'default', 'dir': 'asc'}}) %}
{% endif %}
<div class="columns small-10 small-offset-1 news_grid">
<div class="row">
{% for post in sessions %}
{% include 'partials/grid-block.html.twig' with {'post':post } %}
{% endfor %}
</div>
</div>
{% if config.plugins.pagination.enabled %}
{% include 'partials/pagination.html.twig' with {'base_url':page.url, 'pagination':collection.params.pagination} %}
{% endif %}
{% endblock %}