Socket
Socket
Sign inDemoInstall

@11ty/eleventy-plugin-rss

Package Overview
Dependencies
23
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @11ty/eleventy-plugin-rss

A pack of Eleventy plugins for generating an RSS feed using the Nunjucks templating engine.


Version published
Weekly downloads
12K
decreased by-15.82%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

eleventy-plugins-rss

A pack of Eleventy plugins for generating an RSS feed using the Nunjucks templating engine.

Installation

Available on npm.

npm install @11ty/eleventy-plugin-rss --save

Open up your Eleventy config file (probably .eleventy.js) and use addPlugin:

const pluginRss = require("@11ty/eleventy-plugin-rss");
module.exports = function(eleventyConfig) {
  eleventyConfig.addPlugin(pluginRss);
};

Read more about Eleventy plugins.

Usage

See sample/feed.njk for an example RSS (actually Atom ¯\_(ツ)_/¯) feed template.

Supplies: Nunjucks Filters

  • rssLastUpdatedDate: Gets the most recently updated content in the collection and retrieves the properly formatted Date for the top-level <updated> element.
  • rssDate: format a Date to be used for individual <entry><updated> elements.
  • absoluteUrl: converts a single URL (relative or absolute path) to a full absolute URL including protocol, domain, full path.
  • htmlToAbsoluteUrls: transforms all of the URLs in a block of HTML with absoluteUrl above. Uses posthtml-urls with a[href], video[src], audio[src], source, img[src], [srcset] and a whole bunch more.

Keywords

FAQs

Last updated on 27 Aug 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc