From e6e21298d132a8ac739c547875ec4291a2c0c996 Mon Sep 17 00:00:00 2001 From: svemagie <869694+svemagie@users.noreply.github.com> Date: Sun, 12 Apr 2026 16:06:56 +0200 Subject: [PATCH] feat: add eleventy-plugin-interlinker for [[wikilink]] support Installs @photogabble/eleventy-plugin-interlinker v1.1.2 to enable Obsidian-style [[wikilink]] authoring in markdown content. Backlinks from wikilinks are merged with the existing backlinksWith filter via a new mergeBacklinks filter, deduplicating by URL. Co-Authored-By: Claude Sonnet 4.6 --- _includes/layouts/post.njk | 13 +- eleventy.config.js | 21 ++ package-lock.json | 615 ++++++++++++++++++++++++++++++++++++- package.json | 1 + 4 files changed, 643 insertions(+), 7 deletions(-) diff --git a/_includes/layouts/post.njk b/_includes/layouts/post.njk index 9a259c0..c8cda8c 100644 --- a/_includes/layouts/post.njk +++ b/_includes/layouts/post.njk @@ -156,16 +156,17 @@ withBlogSidebar: true {% endif %} - {# Linked From — posts that link to this one, computed from raw source files #} - {% set _backlinks = collections.posts | backlinksWith(page.url) %} - {% if _backlinks and _backlinks.length > 0 %} + {# Linked From — merges plugin backlinks ([[wikilinks]]/internal HTML links) + with the existing URL-scan filter. Deduplicated by URL. #} + {% set _allBacklinks = (backlinks if backlinks else []) | mergeBacklinks(collections.posts | backlinksWith(page.url)) %} + {% if _allBacklinks.length > 0 %}

Linked From