From eb212af7ce2fdd100f23493252ee26b650696ea1 Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Wed, 9 Oct 2024 19:14:04 +0800 Subject: [PATCH] Display previous and next post pagination if there is more than one post --- src/_includes/global/content.njk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_includes/global/content.njk b/src/_includes/global/content.njk index 414b2deb..ec8960d6 100644 --- a/src/_includes/global/content.njk +++ b/src/_includes/global/content.njk @@ -51,8 +51,8 @@ {{ content | safe }} {% if tags and tags.includes("posts") %} + {%- if collections.posts.length > 1 %} + {%- endif %} {% endif %}