From 767f8d6b6c7bc1c32aa19da06e23014a14351010 Mon Sep 17 00:00:00 2001 From: Ricardo Date: Sat, 31 Jan 2026 13:24:43 +0100 Subject: [PATCH] feat: add consistent styling to all post type pages - Add withSidebar, h-feed wrapper, pagination to all post type pages - Add total count display - Add post-card class for consistent styling - Add category display - Keep type-specific icons (heart for likes, reply arrow, repost icon) - Keep photo gallery layout for photos page All post type pages now match the articles/notes pattern. Co-Authored-By: Claude Opus 4.5 --- bookmarks.njk | 125 +++++++++++++++++++++++++++++++++---------- likes.njk | 132 +++++++++++++++++++++++++++++++-------------- photos.njk | 123 ++++++++++++++++++++++++++++++------------ replies.njk | 140 +++++++++++++++++++++++++++++++++--------------- reposts.njk | 144 ++++++++++++++++++++++++++++++++++---------------- 5 files changed, 476 insertions(+), 188 deletions(-) diff --git a/bookmarks.njk b/bookmarks.njk index 41cdae3..41c888e 100644 --- a/bookmarks.njk +++ b/bookmarks.njk @@ -1,34 +1,105 @@ --- layout: layouts/base.njk title: Bookmarks -permalink: /bookmarks/ +withSidebar: true +pagination: + data: collections.bookmarks + size: 20 + alias: paginatedBookmarks +permalink: "bookmarks/{% if pagination.pageNumber > 0 %}page/{{ pagination.pageNumber + 1 }}/{% endif %}" --- - diff --git a/likes.njk b/likes.njk index c13b2ac..1c7f299 100644 --- a/likes.njk +++ b/likes.njk @@ -1,49 +1,103 @@ --- layout: layouts/base.njk title: Likes -permalink: /likes/ +withSidebar: true +pagination: + data: collections.likes + size: 20 + alias: paginatedLikes +permalink: "likes/{% if pagination.pageNumber > 0 %}page/{{ pagination.pageNumber + 1 }}/{% endif %}" --- - diff --git a/photos.njk b/photos.njk index 7299d25..0f99923 100644 --- a/photos.njk +++ b/photos.njk @@ -1,42 +1,97 @@ --- layout: layouts/base.njk title: Photos -permalink: /photos/ +withSidebar: true +pagination: + data: collections.photos + size: 20 + alias: paginatedPhotos +permalink: "photos/{% if pagination.pageNumber > 0 %}page/{{ pagination.pageNumber + 1 }}/{% endif %}" --- - diff --git a/replies.njk b/replies.njk index fdb1c44..e1950ea 100644 --- a/replies.njk +++ b/replies.njk @@ -1,53 +1,107 @@ --- layout: layouts/base.njk title: Replies -permalink: /replies/ +withSidebar: true +pagination: + data: collections.replies + size: 20 + alias: paginatedReplies +permalink: "replies/{% if pagination.pageNumber > 0 %}page/{{ pagination.pageNumber + 1 }}/{% endif %}" --- - diff --git a/reposts.njk b/reposts.njk index 1db416f..a16a4d2 100644 --- a/reposts.njk +++ b/reposts.njk @@ -1,55 +1,109 @@ --- layout: layouts/base.njk title: Reposts -permalink: /reposts/ +withSidebar: true +pagination: + data: collections.reposts + size: 20 + alias: paginatedReposts +permalink: "reposts/{% if pagination.pageNumber > 0 %}page/{{ pagination.pageNumber + 1 }}/{% endif %}" --- -