Skip to content

Commit

Permalink
Semi-colon added
Browse files Browse the repository at this point in the history
  • Loading branch information
eloisetaylor5693 committed Aug 19, 2024
1 parent 660fafc commit e726a84
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ exports.createPages = async ({ graphql, actions, reporter }) => {
workdays: result.data.allContentfulWorkDay.nodes,
};

createRedirectedPages(createPage, redirects);
createRedirectedPages(createPage, redirects);

createPostPage(posts.news, blogPostTemplate, "news", createPage);
createPostPage(posts.workdays, workDayPostTemplate, "work-days", createPage);
};

function createRedirectedPages(createPage, redirects) {
redirects.forEach(redirect => {
console.log(`Added temp page for ${redirect.fromPath}`)
console.log(`Added temp page for ${redirect.fromPath}`);
createPage({
path: redirect.fromPath,
component: path.resolve(redirect.componentPath),
Expand Down Expand Up @@ -124,4 +124,3 @@ exports.onCreateWebpackConfig = ({ stage, actions }) => {
],
});
};

0 comments on commit e726a84

Please sign in to comment.