RSS + Eleventy

Thursday, 24 October 2019

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:

  1. 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

Back to all posts