Skip to content

Commit e0aa63d

Browse files
committed
docs: update markdown page
1 parent 04604a5 commit e0aa63d

File tree

1 file changed

+1
-50
lines changed

1 file changed

+1
-50
lines changed

docs/content/docs/3.files/1.markdown.md

Lines changed: 1 addition & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -411,56 +411,7 @@ In addition to mdc components and `span`, attribute syntax will work on images,
411411
::
412412
::
413413

414-
### Excerpt
415-
416-
Content excerpt or summary can be extracted from the content using `<!--more-->` as a divider.
417-
418-
```md
419-
---
420-
title: Introduction
421-
---
422-
423-
Learn how to use @nuxt/content.
424-
<!--more-->
425-
Full amount of content beyond the more divider.
426-
```
427-
428-
Description property will contain the excerpt content unless defined within the Front Matter props.
429-
430-
If there is no `<!--more-->` divider in the text then excerpt is undefined.
431-
432-
Example variables will be injected into the document:
433-
434-
```json
435-
{
436-
"excerpt": Object
437-
"body": Object
438-
// ... other keys
439-
}
440-
```
441-
442-
### Images
443-
444-
You can add images to your `public` directory:
445-
446-
```
447-
content/
448-
index.md
449-
public/
450-
img/
451-
image.png
452-
nuxt.config.ts
453-
package.json
454-
tsconfig.json
455-
```
456-
457-
And then use them in your markdown files in the `content` directory as such:
458-
459-
```md [content/index.md]
460-
![my image](/img/image.png)
461-
```
462-
463-
### Binding Data in Markdown
414+
## Binding Data in Markdown
464415

465416
You can bind data within your Markdown document using the `{{ $doc.variable || 'defaultValue' }}` syntax. These values can be defined in the YAML front matter at the top of the document, within each MDC component, or injected using the `data` prop of the `<ContentRenderer>` component.
466417

0 commit comments

Comments
 (0)