From 0840014aa0c26751ac05d0cce8b105048bac2692 Mon Sep 17 00:00:00 2001 From: Leilukin 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 %}