[![ci: build][ci-badge]][ci-url]
Metalsmith plugin to generate rss feed
$ npm install @metalsmith/rss
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
}
})
site_url
is mandatory.
Collection to use
Limit of items to put in the rss feed
RSS encoding
Destination of the rss feed