update
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user