File tree 1 file changed +27
-9
lines changed
1 file changed +27
-9
lines changed Original file line number Diff line number Diff line change 16
16
<div v-if =" page.body.toc?.links" >
17
17
<ul role =" list" class =" text-base leading-6 pb-6" >
18
18
<li
19
- v-for =" item in page.body.toc.links"
20
- :key =" item .id"
19
+ v-for =" i2 in page.body.toc.links"
20
+ :key =" i2 .id"
21
21
>
22
22
<NuxtLink
23
- :to =" `#${ item.id }`"
24
- :class =" {
25
- 'pl-0': item.depth == 2,
26
- 'pl-6': item.depth == 3,
27
- }"
23
+ :to =" `#${ i2.id }`"
28
24
class ="
29
25
text-sky-500
26
+ hover:text-sky-600
30
27
underline
31
- cursor-pointer
32
28
"
33
- >{{ item.text }}</NuxtLink >
29
+ >{{ i2.text }}</NuxtLink >
30
+ <ul
31
+ v-if =" i2.children"
32
+ role =" list"
33
+ class =" pl-6"
34
+ >
35
+ <li
36
+ v-for =" i3 in i2.children"
37
+ :key =" i3.id"
38
+ >
39
+ <NuxtLink
40
+ :to =" `#${ i3.id }`"
41
+ class ="
42
+ text-sky-500
43
+ hover:text-sky-600
44
+ underline
45
+ "
46
+ >{{ i3.text }}</NuxtLink >
47
+ </li >
48
+ </ul >
34
49
</li >
35
50
</ul >
36
51
</div >
43
58
prose-h2:text-gray-900 prose-h2:text-2xl lg:prose-h2:text-3xl
44
59
prose-h3:text-gray-500 prose-h3:text-xl lg:prose-h3:text-2xl
45
60
prose-pre:leading-6
61
+ prose-a:text-sky-500
62
+ hover:prose-a:text-sky-600
63
+ prose-a:font-normal
46
64
"
47
65
>
48
66
<ContentRendererMarkdown :value =" page" />
You can’t perform that action at this time.
0 commit comments