This is a small web app that sends Webmentions to any links in new/updated posts in a Jekyll-powered GitHub Pages site marked up with Microformats 2 h-entry markup.
Deploy the app and then set up a webhook from your GitHub Pages repository to it and whenever a post is successfully pushed webmentions will be sent to any links.
Webmention is a technology developed by the IndieWeb community.
I recommend running this on Heroku using the Deploy to Heroku button. You can host it yourself but will need to define the environment variables below.
Choose a name for your copy of the app, e.g. barryf-webhook-mentions
. Make a note of this for later. You'll next need to define the following configuration:
ROOT_URL
- the root URL of your GitHub Pages site, e.g. https://barryf.github.io
.GITHUB_ACCESS_TOKEN
- a personal access token for your GitHub Pages site (see below for help).GITHUB_USER
: your GitHub username, e.g. barryf
.GITHUB_REPO
: your GitHub Pages site repository name, e.g. barryf.github.io
.Webhook Mentions
.public_repo
scope.https://barryf-webhook-mentions.herokuapp.com
application/json
Test the integration out by writing a test post with a link to my blog post at https://barryfrost.com/2016/07/introducing-webhook-mentions
and pushing it to your GitHub Pages site. A few seconds later you should see the webmention appear below my post.
Don't forget your post layout will need Microformats 2 h-entry markup or the app will not find the link to my blog post.
If you have any problems please log an issue and I'll try to help debug.