Skip to content

Commit 93bd8b9

Browse files
committed
docs: update frontmatter example
1 parent 60198e5 commit 93bd8b9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/docs/docs/guide/frontmatter.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,25 @@ Any Markdown file that contains a YAML frontmatter block will be processed by [g
44

55
```markdown
66
---
7-
title: Blogging Like a Hacker
7+
title: Blogging with VuePress
88
lang: en-US
99
---
1010
```
1111

1212
Between these triple-dashed lines, you can set predefined variables (see [below](#predefined-variables) for a reference), or even create custom ones of your own. These variables will then be available to you through the <code>[$frontmatter](./global-computed.md#frontmatter)</code> variable.
1313

1414
Here's an example of how you could use it in your markdown file:
15-
\````
15+
16+
```markdown
1617
---
17-
title: My Blog Title
18-
lang: English
18+
title: Blogging with VuePress
19+
lang: en-US
1920
---
2021

2122
# {{ $frontmatter.title }}
2223

2324
My blog post is written in {{ $frontmatter.language }}.
24-
25-
\````
25+
```
2626

2727

2828

0 commit comments

Comments
 (0)