From 9f7aa1efa8c1b84b051378d159759fe8e52e92f1 Mon Sep 17 00:00:00 2001 From: svemagie <869694+svemagie@users.noreply.github.com> Date: Wed, 11 Mar 2026 11:12:24 +0100 Subject: [PATCH] docs: document post-interactions component and post layout order Co-Authored-By: Claude Sonnet 4.6 --- CLAUDE.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 55780f3..1f85dc4 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -146,7 +146,7 @@ Most plugin-dependent data files: |------|---------|----------| | `base.njk` | All pages | Base HTML shell with header, footer, nav, meta tags | | `home.njk` | Homepage | Always delegates to `homepage-builder.njk` (requires `content/.indiekit/homepage.json`) | -| `post.njk` | Individual posts | h-entry microformat, Bridgy syndication, webmentions, reply context, photo gallery | +| `post.njk` | Individual posts | h-entry microformat, Bridgy syndication, webmentions, reply context, photo gallery; includes `post-interactions.njk` → `comments.njk` → `webmentions.njk` in that order | | `page.njk` | Static pages | Simple content wrapper, no post metadata | #### Components (_includes/components/) @@ -161,7 +161,9 @@ Most plugin-dependent data files: | `blog-sidebar.njk` | Sidebar for blog/post pages (recent posts, categories) | | `h-card.njk` | Microformat2 h-card for author identity | | `reply-context.njk` | Displays reply-to/like-of/repost-of/bookmark-of context with h-cite | -| `webmentions.njk` | Renders likes, reposts, replies from webmention.io + send form | +| `post-interactions.njk` | Per-post inbound webmentions (likes, reposts, replies, mentions) in card style; client-side AlpineJS, fetches from `/webmentions/api/mentions` + `/conversations/api/mentions`, hidden when empty; placed before comments | +| `webmentions.njk` | Build-time webmention display (facepile + reply cards) + send form; shown after comments | +| `comments.njk` | IndieAuth-gated comment form and thread; shown between post-interactions and webmentions | | `empty-collection.njk` | Fallback message when a post type collection is empty | #### Sections (_includes/components/sections/)