YAML / YML

Nuxt Content can query YAML / YML formatted content.

If the document root is based on key-value pairs, the output contains all the document properties at its root. If the document root is a list -, the output contains all the document properties in a body property.

Example

content/hello.yml
title: Hello Content v2!description: The writing experience for Nuxt 3category: announcement
Output
{  _path: '/hello',  _draft: false,  _partial: false,  title: 'Hello Content v2!',  description: 'The writing experience for Nuxt 3',  category: 'announcement',  _id: 'content:hello.yml',  _type: 'yaml',  _source: 'content',  _file: 'hello.yml',  _extension: 'yml'}