Since November 2011, I’ve used the excellent static-site generator Jekyll to power this site. It’s a fantastic piece of software that’s grown by leaps and bounds since I first picked it up. In that time, as you’ve likely noticed if you’ve followed my recent writing, I’ve been working to integrate various IndieWeb concepts and features into the site.
Some IndieWeb features, like adding
rel="me" to profile links, are easily achievable and fit nicely within Jekyll’s boundaries as a static HTML-generating tool. More dynamic features, like webmentions, require a service or application—something with the ability to respond to incoming requests.
For instance, if I want to display webmentions for this post, I request the following URL:
Asking for the content of that URL, parsing the response, and running the resulting data set through a series of templates yields the “Responses” section on each of my posts.
Open-Sourcing the Project
Earlier this week, after much dragging of feet and checking that I didn’t commit any sensitive, revealing pieces of code, I made public the GitHub repository for webmention.sixtwothree.org. It’s rough around the edges, but it works. Not bad for my first real attempt at a Ruby application, right?
While I’m currently working on replacing Jekyll with my own custom-built CMS, I wanted to make the code for this project available to anyone who may find it helpful. It’s served me well and I hope you find it useful for implementing webmentions into your own project.