chore: add max depth to toc

This commit is contained in:
Jonathan Summers-Muir committed 2021-03-15 15:38:34 +08:00
1 parent 39dc3d70bd
commit d87b113edb
1 file changed
+1 -1
+1 -1
View File
@@ -80,7 +80,7 @@ export async function getStaticProps({ params }: any) {
slug: params.slug,
content: mdxSource,
...data,
toc: toc(content),
toc: toc(content, { maxdepth: 2 }),
},
},
}