You may have noticed a small section at the bottom of diary pages for webmentions. If you’ve ever heard of pingbacks during the Wordpress days, they are the same concept! Webmentions can be set up for any website, and displayed however you please. You can even pull fediverse comments as webmentions and display them on your site! I am not an expert, but following is a little tutorial on how I set up webmentions for this site. I use 11ty to build my site, and you will often see tutorials that use 11ty data files to pull mentions at build time. The downside to this is that you have to rebuild your site every time you want to update your mentions. The solution to this is usually webhooks that tell netlify/vercel/what-have-you to re-deploy the site when new mentions are received, or scheduling a rebuild once a day. To me, this is unnecessarily complicated for the (imo) small gain of less client side javascript. Especially considering I self host my site using Docker on a server in my own…
No comments yet. Log in to reply on the Fediverse. Comments will appear here.