You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
705 B
JavaScript
30 lines
705 B
JavaScript
import React from "react"
|
|
import { graphql } from "gatsby"
|
|
import Layout from '../statComponents/Layout';
|
|
|
|
export default function Template({
|
|
data, // this prop will be injected by the GraphQL query below.
|
|
}) {
|
|
const { markdownRemark } = data // data.markdownRemark holds your post data
|
|
const { frontmatter, html } = markdownRemark
|
|
return (
|
|
<Layout pageTitle={frontmatter.pageTitle}>
|
|
<div
|
|
className="mainContent"
|
|
dangerouslySetInnerHTML={{ __html: html }}
|
|
/>
|
|
</Layout>
|
|
)
|
|
}
|
|
|
|
export const pageQuery = graphql`
|
|
query($id: String!) {
|
|
markdownRemark(id: { eq: $id }) {
|
|
html
|
|
frontmatter {
|
|
slug
|
|
pageTitle
|
|
}
|
|
}
|
|
}
|
|
` |