Folks are really trying to optimize the way they do writing to the web these days. Not least of which are the growing number of static website generators. Today just now @kftiz was outlining a new workflow for her blog using the Eleventy static site generator and hosting via Reclaim Hosting (instead of Github). So far #webmentions are the only really missing piece of the puzzle. ‘Cuz who doesn’t want to know who is reacting, reading and writing in response to one’s own writing. It’s a Read/Write Web after all. Let’s see to that. Nobody is shouting down a well.
Comments
One response to “Eleventy (11ty) and the burgeoning static web”
At least one person has discovered they needed/wanted #webmentions on their 11ty website. But it’s more complicated than that. Apparently there are templates for 11ty that have #webmentions included and ones that do not. And more importantly it appears non-trivial to add #webmentions after the fact. https://sia.codes/posts/webmentions-eleventy-in-depth/. This not a cookbook, step 1, 2, 3, 4 kind of guide, where you need to do everything by rote. No. This very much a detailed explanation of what to setup, and why you need to set it up in order to get #webmentions running. TL;DR –
1.) Set up webmentions for your website
2.) Securely store your webmention token in Netlify and inject it during development
3.) Fetch webmentions at build time
4.) Save webmentions in a cached file that persists between Netlify builds
5.) Render webmentions in Eleventy using Nunjucks
I don’t know what any of this means, never had to setup it up myself. Needless to say, it is in a word, “non-trivial” to get #webmentions setup on 11ty based website.