Update @nuxt/content to version 3.3.0 and refactor content queries
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
const { path } = useRoute()
|
||||
const articles = await queryContent(path).findOne()
|
||||
const articles = await queryCollection('content').path(path).first()
|
||||
|
||||
const links = articles?.body?.toc?.links || []
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user