From f7db31ac279f968bcb2f67f826ee629751e63e66 Mon Sep 17 00:00:00 2001 From: Ricardo Date: Sat, 24 Jan 2026 16:34:08 +0100 Subject: [PATCH] fix: support camelCase property names from Indiekit Eleventy preset MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Indiekit Eleventy preset uses camelcaseKeys to convert frontmatter properties (e.g., bookmark-of → bookmarkOf), but templates expected underscore-separated names (bookmark_of). Changes: - Support both camelCase and underscore property names in all templates - Update collections to filter on both property name formats - Include interaction URLs (bookmarks, likes, replies, reposts) in Bridgy syndication content for proper social media posting Fixes bookmark URLs not appearing on posts or in syndicated content. Co-Authored-By: Claude Opus 4.5 --- _includes/components/reply-context.njk | 32 +++++++++++++++----------- _includes/layouts/post.njk | 14 ++++++++--- bookmarks.njk | 6 +++-- eleventy.config.js | 10 ++++---- likes.njk | 8 ++++--- replies.njk | 8 ++++--- reposts.njk | 8 ++++--- 7 files changed, 55 insertions(+), 31 deletions(-) diff --git a/_includes/components/reply-context.njk b/_includes/components/reply-context.njk index 9398caa..90e62f8 100644 --- a/_includes/components/reply-context.njk +++ b/_includes/components/reply-context.njk @@ -2,9 +2,15 @@ {# Displays rich context for replies, likes, reposts, and bookmarks #} {# Uses h-cite microformat for citing external content #} -{% if in_reply_to or like_of or repost_of or bookmark_of %} +{# Support both camelCase (Indiekit Eleventy preset) and underscore (legacy) property names #} +{% set replyTo = inReplyTo or in_reply_to %} +{% set likedUrl = likeOf or like_of %} +{% set repostedUrl = repostOf or repost_of %} +{% set bookmarkedUrl = bookmarkOf or bookmark_of %} + +{% if replyTo or likedUrl or repostedUrl or bookmarkedUrl %}