Use auto-generated slugs + various other fixes

This commit is contained in:
Kyle Mathews 2017-11-12 18:17:46 -08:00
parent 18c89a9431
commit 6d51a2cc86
11 changed files with 170 additions and 177 deletions

View file

@ -39,14 +39,14 @@ class BlogPostTemplate extends React.Component {
export default BlogPostTemplate
export const pageQuery = graphql`
query BlogPostByPath($path: String!) {
query BlogPostBySlug($slug: String!) {
site {
siteMetadata {
title
author
}
}
markdownRemark(frontmatter: { path: { eq: $path } }) {
markdownRemark(fields: { slug: { eq: $slug } }) {
id
html
frontmatter {