Merge branch 'master' into blog/june

This commit is contained in:
Paul Copplestone committed 2021-07-02 17:11:41 +08:00
commit a05d25dddf
1 file changed
+1 -1
@@ -78,7 +78,7 @@ export async function getStaticProps({ params }: any) {
slug: `${params.year}/${params.month}/${params.day}/${params.slug}`,
content: mdxSource,
...data,
toc: toc(content, { maxdepth: 2 }),
toc: toc(content, { maxdepth: data.toc_depth ? data.toc_depth : 2 }),
},
},
}