Add scaffolding for a design manual

This commit is contained in:
ponas committed 2019-03-09 12:49:37 +01:00
1 parent 7afd28190c
commit 47770abe87
2 files changed
+24 -1

No files matched your search

+6 -1
View File
@@ -42,7 +42,7 @@ exports.createPages = ({ actions, graphql }) => {
: allPages
// Call `createPage()` once per WordPress page
const ignoreSlugs = ['program', 'foreningene']
const ignoreSlugs = ['program', 'foreningene', 'profil']
_.each(pages, ({ node: page }) => {
if (ignoreSlugs.includes(page.slug)) {
return
@@ -55,6 +55,11 @@ exports.createPages = ({ actions, graphql }) => {
},
})
})
createPage({
path: '/profil/',
component: path.resolve('./src/templates/design-manual.js'),
})
})
.then(() => {
return graphql(`