antwar-rss-plugin
Version:
RSS plugin for antwar
22 lines (20 loc) • 414 B
JavaScript
;
const generate = require("./generate");
// Antwar wrapper
module.exports = function ({ baseUrl, sections, get }) {
return {
extra(pages, config) {
return {
"atom.xml": generate({
baseUrl,
sections,
updated: new Date().toString(),
pages,
config,
get
})
};
}
};
};
module.exports.generate = generate;