mirror of
https://github.com/svemagie/blog-eleventy-indiekit.git
synced 2026-05-15 15:08:51 +02:00
feat: add mpSyndicateTo support for IndieNews syndication
Render pending syndication targets as hidden u-syndication links for services like IndieNews that require the link before webmention. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -60,6 +60,17 @@ withBlogSidebar: true
|
|||||||
{# Rich reply context with h-cite microformat #}
|
{# Rich reply context with h-cite microformat #}
|
||||||
{% include "components/reply-context.njk" %}
|
{% include "components/reply-context.njk" %}
|
||||||
|
|
||||||
|
{# Pending syndication targets (for services like IndieNews that require u-syndication before webmention) #}
|
||||||
|
{% if mpSyndicateTo %}
|
||||||
|
<div class="hidden">
|
||||||
|
{% for url in mpSyndicateTo %}
|
||||||
|
{% if "news.indieweb.org" in url %}
|
||||||
|
<a href="{{ url }}" class="u-syndication" rel="syndication">IndieNews</a>
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{# Syndication Footer - shows where this post was also published #}
|
{# Syndication Footer - shows where this post was also published #}
|
||||||
{% if syndication %}
|
{% if syndication %}
|
||||||
<footer class="post-footer mt-8 pt-6 border-t border-surface-200 dark:border-surface-700">
|
<footer class="post-footer mt-8 pt-6 border-t border-surface-200 dark:border-surface-700">
|
||||||
|
|||||||
Reference in New Issue
Block a user