We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cb0439 commit 72cc189Copy full SHA for 72cc189
.prettierignore
@@ -2,3 +2,4 @@ public/
2
pnpm-lock.yaml
3
*.mdx
4
!src/pages/blog/2024-04-11-announcing-new-graphql-website/index.mdx
5
+*.jpg
src/pages/tags/[slug].mdx
@@ -15,8 +15,8 @@ export async function getStaticProps({ params }) {
15
}
16
17
export function getStaticPaths() {
18
- const result = getPagesUnderRoute("/blog")
19
- const tags = result.flatMap(item => item.frontMatter.tags)
+ const items = getPagesUnderRoute("/blog").flatMap(item => item.children || item)
+ const tags = items.flatMap(item => item.frontMatter.tags)
20
return {
21
fallback: false,
22
paths: [...new Set(tags)].map(slug => ({ params: { slug } })),
0 commit comments