@ryanccn/eleventy-plugin-rss
v1.2.2
Published
A pack of Eleventy plugins for generating an RSS feed using the Nunjucks templating engine.
Downloads
67
Readme
@ryanccn/eleventy-plugin-rss
A pack of Eleventy filters for generating Atom, JSON and RSS feeds using the Nunjucks templating engine.
This is a fork of the official plugin, which doesn't seem to be particularly maintained.
See sample/feed.njk
for an example Atom feed template, sample/feed.json
for an example JSON feed template, or sample/feed-rss.njk
for an example RSS feed template.
Installation
npm install @ryanccn/eleventy-plugin-rss
Filters
dateRfc3339
: RFC 3339 dates that Atom usesdateRfc822
: RFC 822 datesgetNewestCollectionItemDate
: Get the newest date of an item in a collectionabsoluteUrl
: Make a relative URL absoluteconvertHtmlToAbsoluteUrls
: Convert relative links in HTML to absolute URLs