From 9b50893782a230650c7fcc3b117e754024dbeb69 Mon Sep 17 00:00:00 2001 From: Ricardo Date: Wed, 4 Mar 2026 22:25:57 +0100 Subject: [PATCH] feat: redesign post navigation with image-first approach MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OG images are now the primary navigation element — large, prominent, and clickable. Directional labels overlay the image. Falls back to text title + date when no OG image exists. Inspired by zachleat.com. Confab-Link: http://localhost:8080/sessions/bd3f7012-c703-47e9-bfe2-2ad04ce1842d --- _includes/components/post-navigation.njk | 153 +++++++++++++---------- 1 file changed, 89 insertions(+), 64 deletions(-) diff --git a/_includes/components/post-navigation.njk b/_includes/components/post-navigation.njk index fb22bab..0103704 100644 --- a/_includes/components/post-navigation.njk +++ b/_includes/components/post-navigation.njk @@ -1,78 +1,103 @@ -{# Post Navigation - Previous/Next (main content area, below post) #} +{# Post Navigation - Previous/Next (image-first, inspired by zachleat.com) #} {% set _prevPost = collections.posts | previousInCollection(page) %} {% set _nextPost = collections.posts | nextInCollection(page) %} {% if _prevPost or _nextPost %} {% endif %}