In the interest of continuing to repeat myself I'm writing, once again, about adding webmentions to a blog.[1] To quote myself[2]: To kick this off yo

Webmentions in Eleventy • Cory Dransfeldt

submited by
Style Pass
2023-03-18 00:30:07

In the interest of continuing to repeat myself I'm writing, once again, about adding webmentions to a blog.[1] To quote myself[2]:

To kick this off you'll need to log in and establish an account with webmention.io and Bridgy. The former provides you with a pair of meta tags that collect webmentions, the latter connects your site to social media[1:1]

Once you've added the appropriate tags from webmention.io, connected your desired accounts to Bridgy and received some mentions on these sites, you should be able to access said mentions via their API.

I have cache duration set to 1h and a scheduled build operating on approximately the same schedule that's handled by a GitHub action leveraging Vercel's CLI:

This conditionally displays different mention types based on the available data after being passed through the webmentionsByUrl filter which I shamelessly lifted from Robb.

I would like to also send outbound webmentions, but have yet to find a clear way to do so. One option I've seen mentioned is Telegraph, but it's API interface requires a network call per link mentioned (which isn't untenable, but parsing posts for links and making a call for each feels suboptimal)[3].

Leave a Comment