Skip to content

Commit 161e56f

Browse files
authored
docs: update permalink in frontmatter (#25)
1 parent b7821e4 commit 161e56f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

docs/reference/frontmatter.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,16 @@ layout: CustomLayout
109109

110110
## permalink
111111

112-
- Type: `string`
112+
- Type: `string | null`
113113

114114
- Details:
115115

116116
Permalink for the page.
117117

118118
This will override the default route path that determined by the file path of the page.
119119

120+
When it is set to `null`, the permalink of the page will be disabled.
121+
120122
- Also see:
121123
- [Frontmatter > permalinkPattern](#permalinkpattern)
122124
- [Guide > Page > Routing](../guide/page.md#routing)

docs/zh/reference/frontmatter.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,16 @@ layout: CustomLayout
109109

110110
## permalink
111111

112-
- 类型: `string`
112+
- 类型: `string | null`
113113

114114
- 详情:
115115

116116
页面的永久链接。
117117

118118
它将会覆盖根据文件路径来决定的默认路由路径。
119119

120+
当被设置为 `null` 时,将会禁用页面的永久链接。
121+
120122
- 参考:
121123
- [Frontmatter > permalinkPattern](#permalinkpattern)
122124
- [指南 > 页面 > 路由](../guide/page.md#路由)

0 commit comments

Comments
 (0)