We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55d11e2 commit b21b61bCopy full SHA for b21b61b
1 file changed
plugins/rss/src/rss.js
@@ -2,14 +2,13 @@ const Feed = require('feed').Feed;
2
const showdown = require('showdown');
3
const { writeFileSync, readFileSync } = require('fs');
4
const { join } = require('path');
5
+const { log, logError, yellow } = require('@scullyio/scully');
6
7
const configFile = readFileSync(`${process.cwd()}/rss.config.json`, 'utf8');
8
const config = JSON.parse(configFile.toString());
9
const blogPostRouteSlug = config.blogPostRouteSlug || '/blog';
10
const feed = new Feed(config);
11
-const { log, logError, yellow } = require('@scullyio/scully');
12
-
13
config.categories.forEach((cat) => {
14
feed.addCategory(cat);
15
});
0 commit comments