diff --git a/src/App/templates/partial/pagination.html.twig b/src/App/templates/partial/pagination.html.twig new file mode 100644 index 00000000..4169386f --- /dev/null +++ b/src/App/templates/partial/pagination.html.twig @@ -0,0 +1,22 @@ + diff --git a/src/Blog/templates/page/author-resource.html.twig b/src/Blog/templates/page/author-resource.html.twig index ccb80450..4358de08 100644 --- a/src/Blog/templates/page/author-resource.html.twig +++ b/src/Blog/templates/page/author-resource.html.twig @@ -44,18 +44,7 @@ {% if data.lastPage > 1 %} - + {{ include('@partial/pagination.html.twig', {data: data, aria_label: 'Author posts pagination'}) }}

Page {{ data.currentPage }} of {{ data.lastPage }} diff --git a/src/Blog/templates/page/blog.html.twig b/src/Blog/templates/page/blog.html.twig index cae16e01..afd850f4 100644 --- a/src/Blog/templates/page/blog.html.twig +++ b/src/Blog/templates/page/blog.html.twig @@ -40,18 +40,7 @@ {% if data.lastPage > 1 %} -

+ {{ include('@partial/pagination.html.twig', {data: data, aria_label: 'Posts pagination'}) }}

Page {{ data.currentPage }} of {{ data.lastPage }} diff --git a/src/Blog/templates/page/category-resource.html.twig b/src/Blog/templates/page/category-resource.html.twig index 784792e0..5694a5d4 100644 --- a/src/Blog/templates/page/category-resource.html.twig +++ b/src/Blog/templates/page/category-resource.html.twig @@ -42,18 +42,7 @@ {% if data.lastPage > 1 %} -

+ {{ include('@partial/pagination.html.twig', {data: data, aria_label: 'Category posts pagination'}) }}

Page {{ data.currentPage }} of {{ data.lastPage }}