This package has been deprecated

Author message:

No longer maintained; Migrate to the following package: @metalsmith/rss

metalsmith-rss

1.0.0 • Public • Published

metalsmith-rss Travis Build Status

Metalsmith plugin to generate rss feed

Installation

$ npm install metalsmith-rss

Usage

import Metalsmith from "metalsmith"
import collections from "metalsmith-collections"
import rss from "metalsmith-rss"
 
new Metalsmith("./")
  .use(
    collections({
      //...
    })
  )
  .use(
    rss({
      feedOptions: {
        title: "test",
        site_url: "http://test.test",
      },
    })
  )
  .build(err => {if (err) {throw err}})

Options

feedOptions

RSS options

site_url is mandatory.

collections (default: "posts")

Collection to use

limit (default: 20)

Limit of items to put in the rss feed

encoding (default: "utf8")

RSS encoding

destination (default: "rss.xml")

Destination of the rss feed

Changelog

License

Package Sidebar

Install

npm i metalsmith-rss

Weekly Downloads

6

Version

1.0.0

License

MIT

Last publish

Collaborators

  • woodyrew
  • moox