Skip to content

Commit d17b403

Browse files
committed
docs: update front matter language example for zh-CN (#2939)
1 parent b26be33 commit d17b403

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/docs/docs/zh/guide/frontmatter.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@
44

55
```markdown
66
---
7-
title: Blogging Like a Hacker
8-
lang: en-US
7+
title: Blogging with VuePress
8+
lang: zh-CN
99
---
10+
11+
# {{ $frontmatter.title }}
12+
13+
My blog post is written in {{ $frontmatter.lang }}.
1014
```
1115

1216
在这些三条虚线之间,你可以设置预定义变量(参见[下面](#预定义变量)),甚至可以创建自己的自定义变量。 然后,您可以使用 <code> [$frontmatter](global-computed.md#frontmatter)</code> 在页面的其余部分、以及所有的自定义和主题组件访问这些变量。

0 commit comments

Comments
 (0)