From 60b59949ef0f997c81876c729fffe3f6f6246b21 Mon Sep 17 00:00:00 2001 From: Ricardo Date: Fri, 13 Feb 2026 09:51:18 +0100 Subject: [PATCH] feat: site-wide webmentions widget with inbound/outbound tabs Replaces the per-post webmentions sidebar widget (which was redundant with the main content webmentions section) with a site-wide widget showing recent inbound webmentions (via API) and outbound interactions (from Eleventy collections). Available in all sidebars. Co-Authored-By: Claude Opus 4.6 --- _includes/components/homepage-sidebar.njk | 2 + _includes/components/sidebar.njk | 2 + _includes/components/widgets/webmentions.njk | 167 ++++++++++++++++--- 3 files changed, 146 insertions(+), 25 deletions(-) diff --git a/_includes/components/homepage-sidebar.njk b/_includes/components/homepage-sidebar.njk index d63e5d9..227109e 100644 --- a/_includes/components/homepage-sidebar.njk +++ b/_includes/components/homepage-sidebar.njk @@ -28,6 +28,8 @@ }); + {% elif widget.type == "webmentions" %} + {% include "components/widgets/webmentions.njk" %} {% elif widget.type == "custom-html" %} {# Custom content widget #} {% set wConfig = widget.config or {} %} diff --git a/_includes/components/sidebar.njk b/_includes/components/sidebar.njk index 6641139..ab17654 100644 --- a/_includes/components/sidebar.njk +++ b/_includes/components/sidebar.njk @@ -36,6 +36,8 @@ }); + {% elif widget.type == "webmentions" %} + {% include "components/widgets/webmentions.njk" %} {% elif widget.type == "custom-html" %} {% set wConfig = widget.config or {} %}