mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-12-07 10:47:37 +01:00
chore(gatsby): updated gatsby + deps and added canonical links
This commit is contained in:
@@ -14,17 +14,15 @@ const useCategoriesList = () => {
|
||||
graphql`
|
||||
query CategoriesListQuery {
|
||||
allMarkdownRemark(
|
||||
filter: {
|
||||
frontmatter: { template: { eq: "post" }, draft: { ne: true } }
|
||||
}
|
||||
filter: { frontmatter: { template: { eq: "post" }, draft: { ne: true } } }
|
||||
) {
|
||||
group(field: frontmatter___category) {
|
||||
group(field: { frontmatter: { category: SELECT } }) {
|
||||
fieldValue
|
||||
totalCount
|
||||
}
|
||||
}
|
||||
}
|
||||
`,
|
||||
`
|
||||
);
|
||||
|
||||
return allMarkdownRemark.group ?? [];
|
||||
|
||||
Reference in New Issue
Block a user