Skip to content

Instantly share code, notes, and snippets.

@Acen
Created March 9, 2022 11:57
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 Acen/f9966b408387143ef582e4611b70cb01 to your computer and use it in GitHub Desktop.
Save Acen/f9966b408387143ef582e4611b70cb01 to your computer and use it in GitHub Desktop.
query ($uri: String!) {
wpPage(uri: { eq: $uri }) {
title
content
uri
slug
isFrontPage
wpFields {
homepage {
fieldGroupName
centeredHero {
fieldGroupName
title
content
buttonlink {
url
target
}
buttontext
image {
localFile {
childImageSharp {
gatsbyImageData
}
}
altText
}
}
contentSections {
section {
body
contentSide
fieldGroupName
title
image {
localFile {
childImageSharp {
gatsbyImageData
}
}
altText
}
buttontext
buttonlink {
url
target
}
}
}
fullCta {
buttontext
content
title
buttonlink {
url
target
}
}
contentSections2 {
section {
body
contentSide
fieldGroupName
title
image {
localFile {
childImageSharp {
gatsbyImageData
}
}
altText
}
buttontext
buttonlink {
url
target
}
}
}
textBlock {
section {
title
content
buttonlink {
url
target
}
buttontext
}
}
contentSections3 {
section {
body
contentSide
fieldGroupName
title
image {
localFile {
childImageSharp {
gatsbyImageData
}
}
altText
}
buttontext
buttonlink {
url
target
}
}
}
testimonials {
testimonial {
... on WpPost {
id
testimonial {
quote
quotee
quoteeRole
starRanking
image {
localFile {
childImageSharp {
gatsbyImageData
}
}
}
}
}
}
}
blogList {
content
title
featured {
feature {
... on WpPost {
id
title
slug
uri
author {
node {
name
avatar {
default
url
}
}
}
date(formatString: "YYYY-MM-DD")
excerpt
featuredImage {
node {
altText
localFile {
childImageSharp {
gatsbyImageData
}
}
}
}
}
}
}
}
}
}
template {
templateName
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment