🌿 Nuxt.js Intermediate

What is the Nuxt Content module?

Answer

The Nuxt Content module (@nuxt/content) is a file-based CMS that lets you write content in Markdown, MDC, YAML, CSV, or JSON files stored in the content/ directory. It parses these files and provides a query API (similar to a database query builder) to fetch and filter content. The queryContent() composable supports filtering, sorting, limiting, and navigating through content. The <ContentDoc /> and <ContentRenderer /> components render Markdown with custom Vue components via the MDC syntax. It's ideal for documentation sites, blogs, and any content-heavy application that benefits from version-controlled Markdown files.