npm install after cloning this repository. The available commands are identical to eleventy-base-blog.
Follow these steps to get it working:
- Go to https://webmention.io/ and sign in. To authenticate, you will have to include a
<a rel="me">link at your domain, pointing to your github or twitter user URL:
<a href="https://github.com/maxboeck" rel="me">Max on Github</a>
Once you've verified domain ownership, go to the settings page. Copy the token listed under "API Key" there.
Paste the token into the
.env.samplefile, then delete the
.samplefrom the filename.
Check the information in
_data/metadata.jsonand make sure your domain name is correct. It should look like
Run Eleventy. It will try to fetch the webmentions for your domain (you may not yet have any, check your webmentions.io dashboard). After the first use, a cached json file will be created so you don't have to re-fetch that data everytime eleventy regenerates the site in development.
This starter includes just the basic functionality, feel free to make it your own.
The relevant parts are:
- Data Fetching:
- Basic Styling: