When I switched this site across to Eleventy I left myself with a to-do list which I’ve slowly been working through- one of them was to re-implement the RSS feed. Good news, I did that this evening. Turns out it was really simple 🎉
The steps are trivial:
- Install the Eleventy RSS plugin and follow the two step instructions and the sample.
The other two things that are useful to do:
One: Add the RSS feed to the head
with a link
tag:
<link
rel="alternate"
type="application/rss+xml"
title="Blog RSS"
href="/blog/feed.xml"
/>
Two: Exclude files that shouldn’t be there from collections (like the blog listing page).
eleventyExcludeFromCollections: true
I realise that I might be too late to the party on this and everyone has gone home…
Post changelog
- 2020-08-05 – Add syntax highlighting
- 2020-05-17 – Decouple gulp from SCSS generation