Questions tagged [nuxt-content]

Use this tag for questions related to Content module of Nuxt.JS. This module is optional for Nuxt projects and provide ability to fill project with content using Markdown, JSON, YAML, CSV and XML files. Shortly - Git-based CMS

Links

Official website - https://content.nuxtjs.org

Github Repo - https://github.com/nuxt/content

Installation

Docs: https://content.nuxtjs.org/installation

  • NPM: npm install @nuxt/content
  • Yarn: yarn add @nuxt/content
  • Also available as option when creating project with create-nuxt-app

Features:

  • Blazing fast hot reload in development
  • Vue components in Markdown
  • Full-text search
  • Support static site generation with nuxt generate
  • Powerful QueryBuilder API (MongoDB like)
  • Syntax highlighting to code blocks in markdown files using PrismJS.
  • Table of contents generation
  • Handles Markdown, CSV, YAML, JSON, XML
  • Extend with custom parsers
  • Extend with hooks

Tutorial

Create a blog with Nuxt Content

Description taken from Introduction markdown file

69 questions
2
votes
2 answers

Getting Nuxt.js to generate routes from markdown frontmatter

I'm using nuxt-content to generate a static site from markdown files, and trying to figure out how to generate nested routes from frontmatter data. For example given a post's frontmatter: title: Post Title slug: post-title media: - file:…
Eli
  • 69
  • 7
1
vote
1 answer

How do I render a partial in Markdown content using Nuxt Content?

In Nuxt Content, we can create and declare Markdown partials by prefixing the file name with an underscore, as described here: https://content.nuxtjs.org/guide/writing/content-directory#partials However, the documentation contains no information on…
Daniel Rosenberg
  • 616
  • 5
  • 14
1
vote
0 answers

Og meta tags don't generate with nuxt content

I am using NuxtContent with Nuxt3. I have a document that uses the following tags: --- title: "test" description: "test" image: src: '/test.webp' alt: 'test' head: meta: - name: 'keywords' content: 'test' --- This results in proper…
Mathijs
  • 177
  • 3
  • 18
1
vote
0 answers

How can I output real markdown/HTML from a yaml in MDC as used in Nuxt 3 Content 2?

I have the following Nuxt 3 Content 2 (N3C2) component: