Skip to content

Commit 5808eaf

Browse files
committed
chore: use md for frontmatter code fence
1 parent bd2cbdf commit 5808eaf

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

docs/guide/page.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Take the `docs` directory as your [sourceDir](../reference/cli.md), e.g. your ar
3030

3131
A markdown file could contain a [YAML](https://yaml.org/) frontmatter. The frontmatter must be at the top of the Markdown file and must be wrapped with a couple of triple-dashed lines. Here is a basic example:
3232

33-
```yaml
33+
```md
3434
---
3535
lang: en-US
3636
title: Title of this page

docs/reference/frontmatter.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,16 @@
4646

4747
- Example:
4848

49-
```yaml
49+
```md
50+
---
5051
head:
5152
- - meta
5253
- name: foo
5354
content: bar
5455
- - link
5556
- rel: canonical
5657
href: foobar
58+
---
5759
```
5860

5961
Rendered as:
@@ -127,7 +129,7 @@ head:
127129

128130
The page frontmatter is:
129131

130-
```yaml
132+
```md
131133
---
132134
date: 2021-01-03
133135
permalinkPattern: :year/:month/:day/:slug.html
@@ -142,7 +144,7 @@ permalinkPattern: :year/:month/:day/:slug.html
142144

143145
The page frontmatter is:
144146

145-
```yaml
147+
```md
146148
---
147149
permalinkPattern: :year/:month/:day/:slug.html
148150
---

docs/zh/guide/page.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ VuePress 是以 Markdown 为中心的。你项目中的每一个 Markdown 文件
3030

3131
Markdown 文件可以包含一个 [YAML](https://yaml.org/) Frontmatter 。Frontmatter 必须在 Markdown 文件的顶部,并且被包裹在一对三短划线中间。下面是一个基本的示例:
3232

33-
```yaml
33+
```md
3434
---
3535
lang: zh-CN
3636
title: 页面的标题

docs/zh/reference/frontmatter.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,16 @@
4646

4747
- 示例:
4848

49-
```yaml
49+
```md
50+
---
5051
head:
5152
- - meta
5253
- name: foo
5354
content: bar
5455
- - link
5556
- rel: canonical
5657
href: foobar
58+
---
5759
```
5860

5961
渲染为:
@@ -127,7 +129,7 @@ head:
127129

128130
页面 Frontmatter 是:
129131

130-
```yaml
132+
```md
131133
---
132134
date: 2021-01-03
133135
permalinkPattern: :year/:month/:day/:slug.html
@@ -142,7 +144,7 @@ permalinkPattern: :year/:month/:day/:slug.html
142144

143145
页面 Frontmatter 是:
144146

145-
```yaml
147+
```md
146148
---
147149
permalinkPattern: :year/:month/:day/:slug.html
148150
---

0 commit comments

Comments
 (0)