Created
December 30, 2020 11:06
-
-
Save tobob/2b4b0211d1ebaa935fc9f0fb5ca40ae7 to your computer and use it in GitHub Desktop.
This file contains 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 | |
} | |
} | |
contentReferences { | |
...CodeComponentFragment | |
} | |
} | |
} | |
` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment