Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions docs/content/3.guide/1.writing/2.markdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,34 @@ description: 'meta description of the page'

When used together with [`<ContentDoc>`](/guide/displaying/rendering#contentdoc-) or the [document-driven mode](/guide/writing/document-driven) to display the current page, the [`useContentHead() composable`](/api/composables/use-content-head) will be used to set the page's metadata.


## Excerpt

Content excerpt or summary can be extracted from the content using `<!--more-->` as a divider.

```md
---
title: Introduction
---

Learn how to use @nuxt/content.
<!--more-->
Full amount of content beyond the more divider.
```

Description property will contain the excerpt content unless defined within the Front Matter props.

Example variables will be injected into the document:

```json
{
"_id": "content:index.md"
"excerpt": Object
"body": Object
// ... other keys
}
```

## Code Highlighting

Code highlighting allows you to display beautiful code blocks in your website.
Expand Down