99a943eb36
pipeline / build-and-push-images (push) Successful in 3m12s
NuxtJS, Vue, real web app Nuxt content: blog Better mobile/responsive design and practices Better practices overall
15 lines
328 B
Vue
15 lines
328 B
Vue
<script setup lang="ts">
|
|
import type { TocLink } from '@nuxt/content';
|
|
|
|
const props = defineProps<{
|
|
link: TocLink
|
|
}>()
|
|
</script>
|
|
|
|
<template>
|
|
<li class="mt-1 mb-1"><a :href="`#${link.id}`">{{ link.text }}</a></li>
|
|
<ul class="ml-2 mt-1 mb-1">
|
|
<BlogTocLink v-for="child in link.children" :link="child" />
|
|
</ul>
|
|
</template>
|