Skip to content

Commit b21b61b

Browse files
committed
refactor(rss): imports
1 parent 55d11e2 commit b21b61b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

plugins/rss/src/rss.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@ const Feed = require('feed').Feed;
22
const showdown = require('showdown');
33
const { writeFileSync, readFileSync } = require('fs');
44
const { join } = require('path');
5+
const { log, logError, yellow } = require('@scullyio/scully');
56

67
const configFile = readFileSync(`${process.cwd()}/rss.config.json`, 'utf8');
78
const config = JSON.parse(configFile.toString());
89
const blogPostRouteSlug = config.blogPostRouteSlug || '/blog';
910
const feed = new Feed(config);
1011

11-
const { log, logError, yellow } = require('@scullyio/scully');
12-
1312
config.categories.forEach((cat) => {
1413
feed.addCategory(cat);
1514
});

0 commit comments

Comments
 (0)