Add scaffolding for a design manual
This commit is contained in:
1 parent
7afd28190c
commit
47770abe87
2 files changed
+24
-1
No files matched your search
+6
-1
@@ -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(`
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
import React from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
import { graphql } from 'gatsby'
|
||||
import { Link } from 'gatsby'
|
||||
import Layout from '../components/Layout'
|
||||
|
||||
export default class DesignManual extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
<Layout>
|
||||
<section className="page design-manual">
|
||||
<h1 className="section-title">Profil</h1>
|
||||
<p>Hei</p>
|
||||
</section>
|
||||
</Layout>
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user