Learning how to use Nuxt Content
Welcome to my first blog post using Nuxt Content! This is an example of how easy it is to create content-driven applications.
Creating content is as simple as writing Markdown files. Here's what makes it great:
You can include code snippets with syntax highlighting:
<template>
<div>
<h1>{{ article.title }}</h1>
<ContentRenderer :value="article" />
</div>
</template>
<script setup>
const { data: article } = await useAsyncData("article", () =>
queryCollection("content").path("/blog/first-post").first(),
);
</script>
You can use all standard Markdown features:
Inline codeBlockquotes work too!
| Feature | Supported |
|---|---|
| Markdown | ✓ |
| MDC | ✓ |
| TypeScript | ✓ |
Nuxt Content makes building content sites a breeze. Give it a try!