From dfce776de62dd2ec0fa026e9afa427210a9c2de6 Mon Sep 17 00:00:00 2001 From: teldra Date: Thu, 12 Jan 2023 01:51:33 +0100 Subject: [PATCH] neues theme: add blueprints.yaml --- .../templates/partials/blog-item.html.twig | 20 ++++--------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/themes/quark-open-publishing/templates/partials/blog-item.html.twig b/themes/quark-open-publishing/templates/partials/blog-item.html.twig index 8b43586e..6b42c09b 100644 --- a/themes/quark-open-publishing/templates/partials/blog-item.html.twig +++ b/themes/quark-open-publishing/templates/partials/blog-item.html.twig @@ -67,27 +67,15 @@ {% endif %} {% endfor %} - - -

- {% if not page.isLast %} - + {% if currentPageIndex > 0 %} + {{ 'THEME_QUARK.BLOG.ITEM.PREV_POST'|t }} {% endif %} -{{ pagination }} - {% if not page.isFirst %} - {{ 'THEME_QUARK.BLOG.ITEM.NEXT_POST'|t }} + {% if currentPageIndex < allPages|length-1 %} + {{ 'THEME_QUARK.BLOG.ITEM.NEXT_POST'|t }} {% endif %}