Move event program to pages

This commit is contained in:
ponas committed 2019-07-21 19:52:24 +02:00
1 parent 3de161a2bb
commit 9134a0eb1c
2 files changed
+1 -8

No files matched your search

+1 -8
View File
@@ -42,7 +42,7 @@ exports.createPages = ({ actions, graphql }) => {
: allPages
// Call `createPage()` once per WordPress page
const ignoreSlugs = ['program', 'foreningene', 'profil']
const ignoreSlugs = ['program', 'foreningene', 'profil', 'booking']
_.each(pages, ({ node: page }) => {
if (ignoreSlugs.includes(page.slug)) {
return
@@ -195,13 +195,6 @@ exports.createPages = ({ actions, graphql }) => {
},
})
})
// Create the event program
const programTemplate = path.resolve(`./src/templates/event-program.js`)
createPage({
path: `/program/`,
component: programTemplate,
})
})
.then(() => {
return graphql(`
File renamed without changes.