Update @nuxt/content to version 3.3.0 and refactor content queries

This commit is contained in:
nurRiyad
2025-03-12 03:43:14 +06:00
parent 1aba5e18cc
commit beb5305d65
15 changed files with 2607 additions and 6080 deletions

View File

@@ -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>