Skip to content

Instantly share code, notes, and snippets.

@tobob
Created December 30, 2020 11:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tobob/2b4b0211d1ebaa935fc9f0fb5ca40ae7 to your computer and use it in GitHub Desktop.
Save tobob/2b4b0211d1ebaa935fc9f0fb5ca40ae7 to your computer and use it in GitHub Desktop.
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