This commit is contained in:
2025-12-20 18:46:45 +08:00
parent 5163e756f0
commit 547fd99c23
73 changed files with 15635 additions and 1924 deletions

View File

@@ -5,7 +5,7 @@ description: Here we will learn How To Properly Fetch Nuxt Content Data and Rend
image: /blogs-img/blog4.jpg
alt: How To Properly Fetch Nuxt Content Data and Render It in Nuxt Pages
ogImage: /blogs-img/blog4.jpg
tags: ['nuxt', 'nuxt-content']
tags: ["nuxt", "nuxt-content"]
published: true
---
@@ -43,7 +43,7 @@ Once Nuxt Content v2 is configured, you can create content files in the specifie
```md
---
title: 'Hello, world!'
title: "Hello, world!"
---
# Welcome to Nuxt Content v2
@@ -59,8 +59,8 @@ Now that we have created content files, we can display the content on a page. To
```vue
<script setup lang="ts">
const { path } = useRoute()
const articles = await queryContent(path).findOne()
const { path } = useRoute();
const articles = await queryContent(path).findOne();
</script>
<template>