From 00e71ed59ec4f5e4582453145996ba9d713f7bff Mon Sep 17 00:00:00 2001 From: neri Date: Fri, 13 Dec 2019 15:51:59 +0100 Subject: [PATCH] convert remaining pages to markdown --- gatsby-node.js | 4 ++-- src/markdown-pages/datenschutz.mdx | 6 ++++++ src/markdown-pages/events.mdx | 6 ++++++ src/markdown-pages/impressum.mdx | 6 ++++++ src/markdown-pages/kontakt.mdx | 6 ++++++ src/markdown-pages/verein.mdx | 6 ++++++ src/pages/events.js | 4 ---- src/pages/kontakt.js | 4 ---- src/pages/verein.js | 4 ---- src/templates/{simpleTemplate.js => siteTemplate.js} | 0 10 files changed, 32 insertions(+), 14 deletions(-) create mode 100644 src/markdown-pages/datenschutz.mdx create mode 100644 src/markdown-pages/events.mdx create mode 100644 src/markdown-pages/impressum.mdx create mode 100644 src/markdown-pages/kontakt.mdx create mode 100644 src/markdown-pages/verein.mdx delete mode 100644 src/pages/events.js delete mode 100644 src/pages/kontakt.js delete mode 100644 src/pages/verein.js rename src/templates/{simpleTemplate.js => siteTemplate.js} (100%) diff --git a/gatsby-node.js b/gatsby-node.js index ae10bea..52e0028 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -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 }) }) diff --git a/src/markdown-pages/datenschutz.mdx b/src/markdown-pages/datenschutz.mdx new file mode 100644 index 0000000..d7a20f6 --- /dev/null +++ b/src/markdown-pages/datenschutz.mdx @@ -0,0 +1,6 @@ +--- +path: "/datenschutz" +title: "Datenschutzerklärung" +--- + +## Datenschutzerklärung diff --git a/src/markdown-pages/events.mdx b/src/markdown-pages/events.mdx new file mode 100644 index 0000000..41690b4 --- /dev/null +++ b/src/markdown-pages/events.mdx @@ -0,0 +1,6 @@ +--- +path: "/events" +title: "Events" +--- + +## Events diff --git a/src/markdown-pages/impressum.mdx b/src/markdown-pages/impressum.mdx new file mode 100644 index 0000000..2ba4317 --- /dev/null +++ b/src/markdown-pages/impressum.mdx @@ -0,0 +1,6 @@ +--- +path: "/impressum" +title: "Impressum" +--- + +## Impressum diff --git a/src/markdown-pages/kontakt.mdx b/src/markdown-pages/kontakt.mdx new file mode 100644 index 0000000..bc0ffea --- /dev/null +++ b/src/markdown-pages/kontakt.mdx @@ -0,0 +1,6 @@ +--- +path: "/kontakt" +title: "Kontakt" +--- + +## Kontakt diff --git a/src/markdown-pages/verein.mdx b/src/markdown-pages/verein.mdx new file mode 100644 index 0000000..ea0d358 --- /dev/null +++ b/src/markdown-pages/verein.mdx @@ -0,0 +1,6 @@ +--- +path: "/verein" +title: "Verein" +--- + +## Verein diff --git a/src/pages/events.js b/src/pages/events.js deleted file mode 100644 index 63b85a7..0000000 --- a/src/pages/events.js +++ /dev/null @@ -1,4 +0,0 @@ -import React from "react" -import Layout from "../components/layout" - -export default () => diff --git a/src/pages/kontakt.js b/src/pages/kontakt.js deleted file mode 100644 index 63b85a7..0000000 --- a/src/pages/kontakt.js +++ /dev/null @@ -1,4 +0,0 @@ -import React from "react" -import Layout from "../components/layout" - -export default () => diff --git a/src/pages/verein.js b/src/pages/verein.js deleted file mode 100644 index 63b85a7..0000000 --- a/src/pages/verein.js +++ /dev/null @@ -1,4 +0,0 @@ -import React from "react" -import Layout from "../components/layout" - -export default () => diff --git a/src/templates/simpleTemplate.js b/src/templates/siteTemplate.js similarity index 100% rename from src/templates/simpleTemplate.js rename to src/templates/siteTemplate.js