diff --git a/_includes/layouts/post.njk b/_includes/layouts/post.njk index 9271507..318e2b8 100644 --- a/_includes/layouts/post.njk +++ b/_includes/layouts/post.njk @@ -72,12 +72,21 @@ withBlogSidebar: true {% endif %} {# Syndication Footer - shows where this post was also published #} + {# Skip syndication URLs that point back to our own site (self-hosted AP) #} + {% set externalSyndication = [] %} {% if syndication %} + {% for url in syndication %} + {% if url.indexOf(site.url) != 0 %} + {% set externalSyndication = (externalSyndication.push(url), externalSyndication) %} + {% endif %} + {% endfor %} + {% endif %} + {% if externalSyndication.length %}