diff --git a/_includes/layouts/post.njk b/_includes/layouts/post.njk index 6d584d6..2a66012 100644 --- a/_includes/layouts/post.njk +++ b/_includes/layouts/post.njk @@ -130,7 +130,10 @@ withBlogSidebar: true {# See Also — explicit related: frontmatter + in-text links to other blog posts #} {% set _seeAlso = page.inputPath | seeAlsoLinks(related) %} - {% if _seeAlso.length > 0 %} + {# Cross-link posts that share the same external target URL (repostOf, likeOf, etc.) #} + {% set _targetUrl = repostedUrl or likedUrl or bookmarkedUrl or replyTo %} + {% set _sameTarget = collections.posts | sameTargetPosts(_targetUrl, page.url) %} + {% if _seeAlso.length > 0 or _sameTarget.length > 0 %}

See Also