Skip to content

Instantly share code, notes, and snippets.

@jeremeylduvall
Created December 14, 2017 13:29
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 jeremeylduvall/a814a20d06c12af14a397546e68c94fa to your computer and use it in GitHub Desktop.
Save jeremeylduvall/a814a20d06c12af14a397546e68c94fa to your computer and use it in GitHub Desktop.
Final Home Page Query
export const pageQuery = graphql`
query IndexQuery {
allWordpressWpMe {
edges {
node {
name
description
avatar_urls {
wordpress_96
}
}
}
}
allWordpressPost( sort: { fields: [ date ], order: DESC } ) {
edges {
node {
id
title
slug
date( formatString: "/YYYY/MM/DD/" )
featured_media {
localFile {
childImageSharp {
sizes( maxWidth: 1000 ) {
...GatsbyImageSharpSizes
}
}
}
}
}
}
}
}
`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment