feat: remove news from platform

This commit is contained in:
Mrugesh Mohapatra
2019-01-14 22:49:13 +05:30
committed by Stuart Taylor
parent 219abdc2ce
commit fdc2219f81
39 changed files with 19 additions and 1709 deletions

View File

@ -1,9 +1,7 @@
const challengePageCreators = require('./challengePageCreator');
const guidePageCreators = require('./guidePageCreator');
const newsPageCreators = require('./newsPageCreator');
module.exports = {
...challengePageCreators,
...guidePageCreators,
...newsPageCreators
...guidePageCreators
};

View File

@ -1,22 +0,0 @@
const path = require('path');
const newsArticle = path.resolve(
__dirname, '../../src/templates/News/ShowArticle/index.js'
);
exports.createNewsArticle = createPage => ({
node: {
fields: { slug },
shortId,
id
}
}) =>
createPage({
path: slug,
component: newsArticle,
context: {
slug,
shortId,
id
}
});