Use auto-generated slugs + various other fixes
This commit is contained in:
parent
18c89a9431
commit
6d51a2cc86
11 changed files with 170 additions and 177 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue