NuxtJS, Vue, real web app Nuxt content: blog Better mobile/responsive design and practices Better practices overall
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user