From 85beed8ef3b587bfedb58ff7b57bd8e0c3312628 Mon Sep 17 00:00:00 2001 From: svemagie <869694+svemagie@users.noreply.github.com> Date: Mon, 23 Mar 2026 18:45:56 +0100 Subject: [PATCH] feat: See Also includes in-text links to other blog posts Adds seeAlsoLinks filter that extracts all internal blog.giersig.eu links from the raw markdown source and merges them with the explicit `related` frontmatter field, deduplicated. The section now surfaces automatically whenever an article links to another post inline. Co-Authored-By: Claude Sonnet 4.6 --- _includes/layouts/post.njk | 7 ++++--- eleventy.config.js | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/_includes/layouts/post.njk b/_includes/layouts/post.njk index 36ee108..6b24af7 100644 --- a/_includes/layouts/post.njk +++ b/_includes/layouts/post.njk @@ -128,12 +128,13 @@ withBlogSidebar: true {% endif %} - {# See Also — related posts from frontmatter (resolved wikilinks → URLs) #} - {% if related and related.length > 0 %} + {# See Also — explicit related: frontmatter + in-text links to other blog posts #} + {% set _seeAlso = page.inputPath | seeAlsoLinks(related) %} + {% if _seeAlso.length > 0 %}

See Also