convert remaining pages to markdown

This commit is contained in:
neri 2019-12-13 15:51:59 +01:00
parent f3aad4a58d
commit 00e71ed59e
10 changed files with 32 additions and 14 deletions

View File

@ -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
})
})

View File

@ -0,0 +1,6 @@
---
path: "/datenschutz"
title: "Datenschutzerklärung"
---
## Datenschutzerklärung

View File

@ -0,0 +1,6 @@
---
path: "/events"
title: "Events"
---
## Events

View File

@ -0,0 +1,6 @@
---
path: "/impressum"
title: "Impressum"
---
## Impressum

View File

@ -0,0 +1,6 @@
---
path: "/kontakt"
title: "Kontakt"
---
## Kontakt

View File

@ -0,0 +1,6 @@
---
path: "/verein"
title: "Verein"
---
## Verein

View File

@ -1,4 +0,0 @@
import React from "react"
import Layout from "../components/layout"
export default () => <Layout />

View File

@ -1,4 +0,0 @@
import React from "react"
import Layout from "../components/layout"
export default () => <Layout />

View File

@ -1,4 +0,0 @@
import React from "react"
import Layout from "../components/layout"
export default () => <Layout />