Skip to content

Instantly share code, notes, and snippets.

@tobob
Last active December 30, 2020 11:12
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/e6e79c431a333a62bdea146aaf208627 to your computer and use it in GitHub Desktop.
Save tobob/e6e79c431a333a62bdea146aaf208627 to your computer and use it in GitHub Desktop.
3rdPageQuery.js
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