This commit is contained in:
+2
-2
@@ -19,7 +19,7 @@ exports.createPages = async ({ graphql, actions, reporter }) => {
|
||||
`
|
||||
{
|
||||
allMarkdownRemark(
|
||||
sort: { fields: [frontmatter___date], order: DESC }
|
||||
sort: { frontmatter: { date: DESC } }
|
||||
limit: 1000
|
||||
filter: { fileAbsolutePath: { regex: "/content/blog/" } }
|
||||
) {
|
||||
@@ -35,7 +35,7 @@ exports.createPages = async ({ graphql, actions, reporter }) => {
|
||||
}
|
||||
}
|
||||
tagsGroup: allMarkdownRemark(limit: 1000) {
|
||||
group(field: frontmatter___tags) {
|
||||
group(field: { frontmatter: { tags: SELECT } }) {
|
||||
name: fieldValue
|
||||
totalCount
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user