From a1da0d7f7cecc6b4595eabf3636b10c96f7b0325 Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Sat, 15 Jun 2024 12:38:32 +0800 Subject: [PATCH] Turn blog's next and previous posts into a grid container --- src/_includes/main/blogpost.njk | 55 +++++++++++++++++++++++++-------- 1 file changed, 42 insertions(+), 13 deletions(-) diff --git a/src/_includes/main/blogpost.njk b/src/_includes/main/blogpost.njk index 4fe8aac5..f12cd926 100644 --- a/src/_includes/main/blogpost.njk +++ b/src/_includes/main/blogpost.njk @@ -5,23 +5,52 @@ isArticle: true {{ content | safe }} -{%- if collections.posts %} - {%- set previousPost = collections.posts | getPreviousCollectionItem %} - {%- set nextPost = collections.posts | getNextCollectionItem %} - {%- if nextPost or previousPost %} - + \ No newline at end of file