Created
May 15, 2021 12:12
-
-
Save blopa/0293dfc731a659ab583c363956a4ff40 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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