We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ffbf54 commit 6a53f14Copy full SHA for 6a53f14
src/.vuepress/theme/components/TableOfContents.vue
@@ -58,8 +58,8 @@ export default {
58
const headers = computed(() => {
59
if (!root.$page.headers) return []
60
return root.$page.headers.map(header => {
61
- return { title: header.title, hash: header.slug }
62
- })
+ return header.level === 2 && { title: header.title, hash: header.slug }
+ }).filter(Boolean)
63
})
64
65
onMounted(() => {
0 commit comments