From 0916b1e691b52d4f6eb88d015858d2ba19734486 Mon Sep 17 00:00:00 2001 From: svemagie <869694+svemagie@users.noreply.github.com> Date: Mon, 20 Apr 2026 19:00:21 +0200 Subject: [PATCH] Add post-type filter nav to all section pages Extracted blog.njk's filter bubbles into a reusable _includes/components/post-type-nav.njk component with active-state highlighting, then included it in articles, notes, photos, bookmarks, likes, reposts, and replies pages. Co-Authored-By: Claude Sonnet 4.6 --- _includes/components/post-type-nav.njk | 9 +++++++++ articles.njk | 3 +++ blog.njk | 8 +------- bookmarks.njk | 3 +++ likes.njk | 3 +++ notes.njk | 3 +++ photos.njk | 3 +++ replies.njk | 3 +++ reposts.njk | 3 +++ 9 files changed, 31 insertions(+), 7 deletions(-) create mode 100644 _includes/components/post-type-nav.njk diff --git a/_includes/components/post-type-nav.njk b/_includes/components/post-type-nav.njk new file mode 100644 index 0000000..c5b46e3 --- /dev/null +++ b/_includes/components/post-type-nav.njk @@ -0,0 +1,9 @@ + diff --git a/articles.njk b/articles.njk index 8a8396d..20f1b1d 100644 --- a/articles.njk +++ b/articles.njk @@ -22,6 +22,9 @@ permalink: "articles/{% if pagination.pageNumber > 0 %}page/{{ pagination.pageNu ({{ collections.articles.length }} total)

+ {% set activePostType = "articles" %} + {% include "components/post-type-nav.njk" %} + {% if paginatedArticles.length > 0 %}