{# Webmentions Component #} {# Displays likes, reposts, and replies for a post #} {# Also checks legacy URLs from micro.blog and old blog for historical webmentions #} {# Client-side JS supplements build-time data with real-time fetches #} {% set mentions = webmentions | webmentionsForUrl(page.url, urlAliases, conversationMentions) %} {% set absoluteUrl = site.url + page.url %} {% set buildTimestamp = "" | timestamp %} {# Data container for client-side JS to fetch new webmentions #}
{# Detect Bluesky syndication URL here — needed to show section even without webmentions #} {% set bskySyndUrl = "" %} {% if syndication %} {% for url in syndication %} {% if "bsky.app" in url %}{% set bskySyndUrl = url %}{% endif %} {% endfor %} {% endif %} {% set mastodonInstance = site.feeds.mastodon.instance %} {% if mentions.length or bskySyndUrl or mastodonInstance %}Have you written a response to this post? Send a webmention by entering your post URL below.