diff --git a/_includes/layouts/base.njk b/_includes/layouts/base.njk index 5e794fe..043268e 100644 --- a/_includes/layouts/base.njk +++ b/_includes/layouts/base.njk @@ -75,6 +75,7 @@ {# Alpine.js components — MUST load before Alpine core (Alpine.data() registration via alpine:init) #} + diff --git a/_includes/layouts/post.njk b/_includes/layouts/post.njk index 9b54a0a..0eab3ef 100644 --- a/_includes/layouts/post.njk +++ b/_includes/layouts/post.njk @@ -72,20 +72,95 @@ 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) #} + {# Separate self-hosted AP URLs from external syndication targets #} {% set externalSyndication = [] %} + {% set selfHostedApUrl = "" %} {% if syndication %} {% for url in syndication %} - {% if url.indexOf(site.url) != 0 %} + {% if url.indexOf(site.url) == 0 %} + {% set selfHostedApUrl = url %} + {% else %} {% set externalSyndication = (externalSyndication.push(url), externalSyndication) %} {% endif %} {% endfor %} {% endif %} - {% if externalSyndication.length %} + {% if externalSyndication.length or selfHostedApUrl %}