Created
December 30, 2020 11:01
-
-
Save tobob/458cf18c9a5fba8af868bbe5a8fd63e7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const pageQuery = graphql` | |
query BlogPostBySlug($slug: String!) { | |
contentfulBlogPost(slug: { eq: $slug }) { | |
title | |
publishDate(formatString: "MMMM Do, YYYY") | |
heroImage { | |
fluid(maxWidth: 1180, background: "rgb:000000") { | |
...GatsbyContentfulFluid_tracedSVG | |
} | |
} | |
body { | |
childMarkdownRemark { | |
html | |
} | |
} | |
} | |
} | |
` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment