The Nuxt Content module reads the content/ directory in your project and parses .md, .yml, .csv and .json files to create a file-based CMS for your application.
Install the @nuxt/content module in your project:
yarn add --dev @nuxt/contentThen, add @nuxt/content to the modules section of nuxt.config.ts:
export default defineNuxtConfig({ modules: [ '@nuxt/content' ], content: { // https://content.nuxtjs.org/api/configuration }})Place your markdown files inside the content/ directory in the root directory of your project:
# Hello ContentThe module automatically loads and parses them.
To render content pages, add a catch-all route using the ContentDoc component:
<template> <main> <ContentDoc /> </main></template>