From f7bc5d9112ae2161385ac4224ff70bc8c888e608 Mon Sep 17 00:00:00 2001 From: Ricardo Date: Wed, 18 Feb 2026 12:02:49 +0100 Subject: [PATCH] feat: add posting frequency sparklines to all post type pages Each collection page (articles, notes, photos, bookmarks, likes, replies, reposts) now shows its own sparkline next to the heading, showing that specific post type's frequency over the last 12 months. --- articles.njk | 8 +++++++- bookmarks.njk | 8 +++++++- likes.njk | 8 +++++++- notes.njk | 8 +++++++- photos.njk | 8 +++++++- replies.njk | 8 +++++++- reposts.njk | 8 +++++++- 7 files changed, 49 insertions(+), 7 deletions(-) diff --git a/articles.njk b/articles.njk index 50b7d64..56e9ba9 100644 --- a/articles.njk +++ b/articles.njk @@ -10,7 +10,13 @@ pagination: permalink: "articles/{% if pagination.pageNumber > 0 %}page/{{ pagination.pageNumber + 1 }}/{% endif %}" ---
-

Articles

+
+

Articles

+ {% set sparklineSvg = collections.articles | postingFrequency %} + {% if sparklineSvg %} + {{ sparklineSvg | safe }} + {% endif %} +

Long-form posts and essays. ({{ collections.articles.length }} total) diff --git a/bookmarks.njk b/bookmarks.njk index 3ed42a1..109da37 100644 --- a/bookmarks.njk +++ b/bookmarks.njk @@ -10,7 +10,13 @@ pagination: permalink: "bookmarks/{% if pagination.pageNumber > 0 %}page/{{ pagination.pageNumber + 1 }}/{% endif %}" ---

-

Bookmarks

+
+

Bookmarks

+ {% set sparklineSvg = collections.bookmarks | postingFrequency %} + {% if sparklineSvg %} + {{ sparklineSvg | safe }} + {% endif %} +

Links I've saved for later. ({{ collections.bookmarks.length }} total) diff --git a/likes.njk b/likes.njk index 7e25572..08a561c 100644 --- a/likes.njk +++ b/likes.njk @@ -10,7 +10,13 @@ pagination: permalink: "likes/{% if pagination.pageNumber > 0 %}page/{{ pagination.pageNumber + 1 }}/{% endif %}" ---

-

Likes

+
+

Likes

+ {% set sparklineSvg = collections.likes | postingFrequency %} + {% if sparklineSvg %} + {{ sparklineSvg | safe }} + {% endif %} +

Content I've liked across the web. ({{ collections.likes.length }} total) diff --git a/notes.njk b/notes.njk index 0723f0d..3c0d4be 100644 --- a/notes.njk +++ b/notes.njk @@ -10,7 +10,13 @@ pagination: permalink: "notes/{% if pagination.pageNumber > 0 %}page/{{ pagination.pageNumber + 1 }}/{% endif %}" ---

-

Notes

+
+

Notes

+ {% set sparklineSvg = collections.notes | postingFrequency %} + {% if sparklineSvg %} + {{ sparklineSvg | safe }} + {% endif %} +

Short thoughts, updates, and quick posts. ({{ collections.notes.length }} total) diff --git a/photos.njk b/photos.njk index 9c9f53b..8d58f66 100644 --- a/photos.njk +++ b/photos.njk @@ -10,7 +10,13 @@ pagination: permalink: "photos/{% if pagination.pageNumber > 0 %}page/{{ pagination.pageNumber + 1 }}/{% endif %}" ---

-

Photos

+
+

Photos

+ {% set sparklineSvg = collections.photos | postingFrequency %} + {% if sparklineSvg %} + {{ sparklineSvg | safe }} + {% endif %} +

Photo posts and images. ({{ collections.photos.length }} total) diff --git a/replies.njk b/replies.njk index 696e1bb..f127cc2 100644 --- a/replies.njk +++ b/replies.njk @@ -10,7 +10,13 @@ pagination: permalink: "replies/{% if pagination.pageNumber > 0 %}page/{{ pagination.pageNumber + 1 }}/{% endif %}" ---

-

Replies

+
+

Replies

+ {% set sparklineSvg = collections.replies | postingFrequency %} + {% if sparklineSvg %} + {{ sparklineSvg | safe }} + {% endif %} +

My responses to posts across the web. ({{ collections.replies.length }} total) diff --git a/reposts.njk b/reposts.njk index 7162d86..7c3a1ab 100644 --- a/reposts.njk +++ b/reposts.njk @@ -10,7 +10,13 @@ pagination: permalink: "reposts/{% if pagination.pageNumber > 0 %}page/{{ pagination.pageNumber + 1 }}/{% endif %}" ---

-

Reposts

+
+

Reposts

+ {% set sparklineSvg = collections.reposts | postingFrequency %} + {% if sparklineSvg %} + {{ sparklineSvg | safe }} + {% endif %} +

Content I've shared from others. ({{ collections.reposts.length }} total)