convert remaining pages to markdown
This commit is contained in:
parent
f3aad4a58d
commit
00e71ed59e
|
@ -3,7 +3,7 @@ const path = require(`path`)
|
|||
exports.createPages = async ({ actions, graphql, reporter }) => {
|
||||
const { createPage } = actions
|
||||
|
||||
const blogPostTemplate = path.resolve(`src/templates/simpleTemplate.js`)
|
||||
const siteTemplate = path.resolve(`src/templates/siteTemplate.js`)
|
||||
|
||||
const result = await graphql(`
|
||||
{
|
||||
|
@ -31,7 +31,7 @@ exports.createPages = async ({ actions, graphql, reporter }) => {
|
|||
result.data.allMdx.edges.forEach(({ node }) => {
|
||||
createPage({
|
||||
path: node.frontmatter.path,
|
||||
component: blogPostTemplate,
|
||||
component: siteTemplate,
|
||||
context: {}, // additional data can be passed via context
|
||||
})
|
||||
})
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
path: "/datenschutz"
|
||||
title: "Datenschutzerklärung"
|
||||
---
|
||||
|
||||
## Datenschutzerklärung
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
path: "/events"
|
||||
title: "Events"
|
||||
---
|
||||
|
||||
## Events
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
path: "/impressum"
|
||||
title: "Impressum"
|
||||
---
|
||||
|
||||
## Impressum
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
path: "/kontakt"
|
||||
title: "Kontakt"
|
||||
---
|
||||
|
||||
## Kontakt
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
path: "/verein"
|
||||
title: "Verein"
|
||||
---
|
||||
|
||||
## Verein
|
|
@ -1,4 +0,0 @@
|
|||
import React from "react"
|
||||
import Layout from "../components/layout"
|
||||
|
||||
export default () => <Layout />
|
|
@ -1,4 +0,0 @@
|
|||
import React from "react"
|
||||
import Layout from "../components/layout"
|
||||
|
||||
export default () => <Layout />
|
|
@ -1,4 +0,0 @@
|
|||
import React from "react"
|
||||
import Layout from "../components/layout"
|
||||
|
||||
export default () => <Layout />
|
Loading…
Reference in New Issue