From 9ab4ebb84a895b3a73119e29fe9d8a2acb81b86f Mon Sep 17 00:00:00 2001
From: Ricardo
Date: Fri, 20 Feb 2026 12:01:55 +0100
Subject: [PATCH] feat: add unfurl cards to reply context (likes, bookmarks,
replies, reposts)
The target URL in likes, bookmarks, replies, and reposts now renders
as a rich OpenGraph card via the unfurl shortcode instead of a bare
link. The raw URL remains below the card for h-cite microformat
compatibility. Results are cached in .cache/unfurl/ for 1 week.
---
_includes/components/reply-context.njk | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/_includes/components/reply-context.njk b/_includes/components/reply-context.njk
index 90e62f8..bfa2781 100644
--- a/_includes/components/reply-context.njk
+++ b/_includes/components/reply-context.njk
@@ -1,6 +1,7 @@
{# Reply Context Component #}
{# Displays rich context for replies, likes, reposts, and bookmarks #}
{# Uses h-cite microformat for citing external content #}
+{# Includes unfurl card for rich link preview (OpenGraph metadata) #}
{# Support both camelCase (Indiekit Eleventy preset) and underscore (legacy) property names #}
{% set replyTo = inReplyTo or in_reply_to %}
@@ -9,7 +10,7 @@
{% set bookmarkedUrl = bookmarkOf or bookmark_of %}
{% if replyTo or likedUrl or repostedUrl or bookmarkedUrl %}
-