diff --git a/src/posts/2023/webmentions-in-eleventy.md b/src/posts/2023/webmentions-in-eleventy.md index 84b37b5f..b63f11b2 100644 --- a/src/posts/2023/webmentions-in-eleventy.md +++ b/src/posts/2023/webmentions-in-eleventy.md @@ -136,8 +136,12 @@ When the build runs, it renders any mentions of a given post via a [liquid.js](h This conditionally displays different mention types based on the available data after being passed through the `webmentionsByUrl` filter which I shamelessly lifted from [Robb](https://github.com/rknightuk/rknight.me/blob/8e2a5c5f886cae6c04add7893b8bf8a2d6295ddf/config/filters.js#L48-L84). -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](https://telegraph.p3k.io/), but its 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]. +~~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](https://telegraph.p3k.io/), but its 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].~~ + +**Edit:** Thanks to [Bob Monsour](https://www.bobmonsour.com) [for the reminder to update this post](https://indieweb.social/@bobmonsour/111819400215065548) — [I added Remy Sharp's @remy/webmention package to accomplish exactly this](https://github.com/cdransf/coryd.dev/commit/071f52810c164a1c200bf4de8b611fbf84568195). + +[Remy has documentation on setting this up](https://webmention.app/docs#using-the-command-line) and it's as simple as adding a dependency and a `postbuild` step. [^1]: I've done so in [Next.js](https://coryd.dev/posts/2023/client-side-webmentions-in-nextjs/) and entirely in Javascript for [weblog.lol](https://coryd.dev/posts/2023/adding-client-side-rendered-webmentions-to-my-blog/). [^2]: Or, better yet, read [Robb's post on the subject](https://rknight.me/adding-webmentions-to-your-site/). -[^3]: I'm probably missing something here and [am happy to be told I'm wrong](https://social.lol/@cory). +[^3]: ~~I'm probably missing something here and [am happy to be told I'm wrong](https://social.lol/@cory).~~