Releases: 11ty/plugin-rss
Release list
Feeds (RSS, Atom, JSON) v3.1.0
- Add
collection.sortoption to the Virtual Template:"auto"(default, previous behavior),"descending"(newest first by date, regardless of collection order), or"ascending". Use"descending"if your collection is sorted newest-first and your feed was showing your oldest posts. #63 - Add
getFeedTemplate(options)export, which returns{ content, data }for use witheleventyConfig.addTemplateso you can choose the virtual template path yourself (useful for multiple feeds of the same type).import { rssPlugin, getFeedTemplate } from "@11ty/eleventy-plugin-rss"; export default function($config) { $config.addPlugin(rssPlugin); let { content, data } = getFeedTemplate({ type: "atom", outputPath: "/posts.xml", collection: { name: "posts" } }); $config.addTemplate("feeds/posts.njk", content, data); };
- Feed entries without a URL (e.g.
permalink: false) are now skipped by the Virtual Template instead of failing the build. #66 (thank you @robb-j for the assist in #59) - Plugin helpers (
feedPlugin,dateToRfc3339,dateToRfc822,getNewestCollectionItemDate,absoluteUrl,convertHtmlToAbsoluteUrls) are available on the default export again (matching CommonJS behavior in v2). Named exports are still the preferred method #91 - JSON Virtual Template now falls back to
metadata.subtitlefor the feeddescription(matching Atom and RSS) whenmetadata.descriptionisn't set. - Fix Atom Virtual Template using
<icon>instead of<logo>formetadata.logoby @philipmw in #90 - Swap
debugdependency forobug.DEBUG=Eleventy*works the same. #100
Milestone: https://github.com/11ty/plugin-rss/milestone/10?closed=1
Full Changelog: v3.0.0...v3.1.0
Feeds (RSS, Atom, JSON) v3.0.0
- Breaking this plugin is now ESM #72 It now requires Eleventy v3 or newer. Read more about how to use ESM plugins in your ESM or CommonJS configuration file. TL;DR:
- ESM:
import rssPlugin from "@11ty/eleventy-plugin-rss"; - CommonJS and Node 20.19+:
const { rssPlugin } = require("@11ty/eleventy-plugin-rss"); - CommonJS and older versions of Node:
const { rssPlugin } = await import("@11ty/eleventy-plugin-rss");in anasyncconfiguration callback.
- ESM:
- Add
scriptparameter to Virtual template so you can pass a URL for the XSLT polyfill by @tomayac in #85 - Fix a couple of RFC822 formatting issues by @sentience in #70
- Add icon and logo optional metadata to Virtual Template by @philipmw in #68
- Add Atom/RSS post summary/description to Virtual Template via
post.data.summaryby @RyKilleen in #65
Thank you to new contributions from @tomayac, @sentience, @philipmw, and @RyKilleen!
Milestone: https://github.com/11ty/eleventy-plugin-rss/milestone/9?closed=1
Full Changelog: v2.0.4...v3.0.0
Eleventy RSS v3.0.0-alpha.3
- Using OIDC Trusted Publishers npm publish workflow (no plugin code changes)
Full Changelog: v3.0.0-alpha.2...v3.0.0-alpha.3
Eleventy RSS v3.0.0-alpha.2
- Upgrades plugin to use ESM #72
Issue Milestone: https://github.com/11ty/eleventy-plugin-rss/milestone/9?closed=1
Full Changelog: v2.0.4...v3.0.0-alpha.2
Eleventy RSS v3.0.0-alpha.1
- Upgrades plugin to use ESM #72
Issue Milestone: https://github.com/11ty/eleventy-plugin-rss/milestone/9?closed=1
Full Changelog: v2.0.4...v3.0.0-alpha.1
Eleventy RSS v2.0.4
- Adds Node v24 to CI
- Removes unnecessary
urlimport.
Full Changelog: v2.0.3...v2.0.4
Eleventy RSS v2.0.3
- Adds npm publishing provenance
- Default branch for this project is now
main - Better error messaging for non-string collection names passed to virtual template #61
- Dependency upgrades, specifically for https://github.com/11ty/eleventy-posthtml-urls/releases/tag/v1.0.1
Eleventy RSS Plugin v2.0.2
- Compatibility with Eleventy core 3.0.0-alpha.15 or newer
- Fixes virtual feed plugin issue with
collections.all#54 - Fixes issue with virtual feed plugin used inside of a plugin #52
Full Changelog: v2.0.1...v2.0.2
Full Milestone: https://github.com/11ty/eleventy-plugin-rss/milestone/8?closed=1
Eleventy RSS Plugin v2.0.1
- Fix missing
headfilter when using virtual templates by @jeanremy (with assist from @benjifs) #50 #51 - Contributors: @jeanremy made their first contribution in #51
Milestone: https://github.com/11ty/eleventy-plugin-rss/milestone/7?closed=1
Full Changelog: v2.0.0...v2.0.1
We need your help!
11ty is now operating independently, with full time development and maintenance funded by our Open Collective supporters. We need your help to keep going! We have a goal of $6000 USD recurring monthly budget. Read more about this fundraising push or head directly to our Open Collective to start your recurring contribution!
Eleventy RSS Plugin v2.0.0
- Compatible with Eleventy v3.0.0-alpha.13 or newer.
- Adds new Virtual Template method for easy Atom/RSS/JSON feed creation #47.
- Build performance benefit reusing new HTML
<base>plugin filters #38 - Refactor dateToRfc822 to use local timezone by @fliptopbox in #45
- Removes incorrectly named
rssLastUpdatedDateandrssDatefilters. UsegetNewestCollectionItemDate | dateToRfc3339anddateToRfc3339instead (respectively). #21 - JSON Feed
authorsfix by @uncenter in #41 - 🥳 New contributors: @uncenter and @fliptopbox!
Milestone: https://github.com/11ty/eleventy-plugin-rss/milestone/3?closed=1
Full Changelog: v1.2.0...v2.0.0
We need your help!
11ty is now operating independently, with full time development and maintenance funded by our Open Collective supporters. We need your help to keep going! We have a goal of $6000 USD recurring monthly budget. Read more about this fundraising push or head directly to our Open Collective to start your recurring contribution!