diff --git a/_includes/components/webmentions.njk b/_includes/components/webmentions.njk index bb2adb8..4b558c3 100644 --- a/_includes/components/webmentions.njk +++ b/_includes/components/webmentions.njk @@ -1,8 +1,18 @@ {# 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) %} +{% set absoluteUrl = site.url + page.url %} +{% set buildTimestamp = "now" | date("x") %} + +{# Data container for client-side JS to fetch new webmentions #} +
{% if mentions.length %}