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 fe774387..a2048a02 100644 --- a/themes/quark-open-publishing/templates/partials/blog-item.html.twig +++ b/themes/quark-open-publishing/templates/partials/blog-item.html.twig @@ -56,13 +56,13 @@ {% set currentPageIndex = allPages.index(currentPage) %}

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