update pager

This commit is contained in:
Simon Vieille 2021-03-29 22:45:00 +02:00
parent d64160961f
commit 7db670ff5f
3 changed files with 10 additions and 2 deletions

View file

@ -15,7 +15,7 @@
{% endblock %}
{% block pager %}
{{ include('blog/post/_pager.html.twig', {
{{ include('module/_pager.html.twig', {
route: _node.routeName,
routeParams: {
category: category.id,

View file

@ -1,5 +1,13 @@
{% extends 'base.html.twig' %}
{%- block meta_title -%}
{{- _page.title.value -}}
{% endblock %}
{%- block page_title -%}
{{- _page.title.value -}}
{% endblock %}
{% block body %}
{% for post in pager %}
{% if not loop.first %}
@ -14,7 +22,7 @@
<div class="body">
<div class="pager align-right">
{% block pager %}
{{ include('blog/post/_pager.html.twig', {
{{ include('module/_pager.html.twig', {
route: _node.routeName,
routeParams: {},
pages: pager.paginationData.endPage,