Skip to content

Instantly share code, notes, and snippets.

@blopa
Created May 15, 2021 12:12
Show Gist options
  • Save blopa/0293dfc731a659ab583c363956a4ff40 to your computer and use it in GitHub Desktop.
Save blopa/0293dfc731a659ab583c363956a4ff40 to your computer and use it in GitHub Desktop.
export const pageQuery = graphql`
query Posts($locale: String) {
allMarkdownRemark(
filter: {
fields: { locale: { eq: $locale } }
frontmatter: { show: { eq: true } }
}
sort: { fields: [frontmatter___date], order: DESC }
) {
edges {
node {
excerpt
fields {
slug
path
locale
}
frontmatter {
date
title
}
}
}
}
}
`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment