feat: add toc

This commit is contained in:
Justineo
2021-10-28 17:03:43 +08:00
parent 5240cfd31b
commit f69013b752
4 changed files with 12 additions and 7 deletions

View File

@@ -1,5 +1,6 @@
<template>
<article ref="article" class="content ${style}">
<article ref="article" class="content ${style}"><!-- if: ${toc} -->
<one-toc :items="toc"/><!-- /if -->
${content | raw}
<section class="meta">
<one-edit-link path="${path}"/>