Skip to content

Instantly share code, notes, and snippets.

@brookslyrette
Created January 1, 2019 18:08
Show Gist options
  • Save brookslyrette/9d2bebe4cea8908d48470a128ecc7c1a to your computer and use it in GitHub Desktop.
Save brookslyrette/9d2bebe4cea8908d48470a128ecc7c1a to your computer and use it in GitHub Desktop.
import React from 'react'
import Layout from '../components/layout'
import Markdown from 'markdown-to-jsx'
export default ({ pageContext }) => {
const { post } = pageContext
return (
<Layout>
<h1> {post.title} </h1>
<Markdown>{post.markdown}</Markdown>
</Layout>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment