From 47770abe874894ecd82d14d8dbadd91b1dc68e89 Mon Sep 17 00:00:00 2001 From: Jonas Braathen Date: Sat, 9 Mar 2019 12:49:37 +0100 Subject: [PATCH] Add scaffolding for a design manual --- gatsby-node.js | 7 ++++++- src/templates/design-manual.js | 18 ++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 src/templates/design-manual.js diff --git a/gatsby-node.js b/gatsby-node.js index 81f9f2e..8c4007a 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -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(` diff --git a/src/templates/design-manual.js b/src/templates/design-manual.js new file mode 100644 index 0000000..d4c2863 --- /dev/null +++ b/src/templates/design-manual.js @@ -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 ( + +
+

Profil

+

Hei

+
+
+ ) + } +}