added docs and rules pages

This commit is contained in:
Xetera
2019-07-29 21:24:56 -04:00
committed by Jean-Philippe Sirois
parent c1245dadbe
commit bf86d72173
7 changed files with 146 additions and 3 deletions
+27
View File
@@ -0,0 +1,27 @@
import React from "react"
import { graphql } from "gatsby"
import { Markdown } from "../components/Markdown"
import { Layout } from "../components/Layout"
import { MarkdownRemark, Query } from "../generated/graphql"
import { SEO } from "../components/SEO"
function AboutPage({ data }: ComponentQuery<{ md: MarkdownRemark }>) {
const { md } = data
return (
<Layout>
<SEO title="About" />
<Markdown content={md.html!} />
</Layout>
)
}
export const query = graphql`
query AboutPage {
md: markdownRemark(frontmatter: { path: { eq: "/about" } }) {
html
}
}
`
export default AboutPage
+27
View File
@@ -0,0 +1,27 @@
import React from "react"
import { graphql } from "gatsby"
import { Markdown } from "../components/Markdown"
import { Layout } from "../components/Layout"
import { MarkdownRemark, Query } from "../generated/graphql"
import { SEO } from "../components/SEO"
function RulesPage({ data }: ComponentQuery<{ md: MarkdownRemark }>) {
const { md } = data
return (
<Layout>
<SEO title="Rules" />
<Markdown content={md.html!} />
</Layout>
)
}
export const query = graphql`
query RulesPage {
md: markdownRemark(frontmatter: { path: { eq: "/rules" } }) {
html
}
}
`
export default RulesPage