Skip to content

Commit

Permalink
docs: add guide for disableUpdateTime and disableEditLink
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyi7099 committed Aug 16, 2019
1 parent e414f0b commit 4e9215c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
18 changes: 17 additions & 1 deletion packages/docs/docs/default-theme-config/README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,15 @@ module.exports = {
};
```

Note that it's `off` by default. If given a `string`, it will be displayed as a prefix (default value: `Last Updated`).
Note that it's `on` by default. If given a `string`, it will be displayed as a prefix (default value: `Last Updated`).

You can set the frontmatter `disableUpdateTime` to `true` to disable `lastUpdated` in certain page.

```md
---
disableUpdateTime: true
---
```

## Git Repo and Edit Links

Expand All @@ -243,6 +251,14 @@ module.exports = {
};
```

You can set the frontmatter `disableEditLink` to `true` to disable `editLinks` in certain page.

```md
---
disableEditLink: true
---
```

## Back To Top

```js
Expand Down
18 changes: 17 additions & 1 deletion packages/docs/docs/zh/default-theme-config/README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,15 @@ module.exports = {
};
```

请注意,`themeConfig.lastUpdated` 默认是关闭的,如果给定一个字符串,它将会作为前缀显示(默认值是:`Last Updated`)。
请注意,`themeConfig.lastUpdated` 默认是开启的,如果给定一个字符串,它将会作为前缀显示(默认值是:`Last Updated`)。

你可以通过设置 frontmatter `disableUpdateTime``true`来关闭特定页面的`lastUpdated`

```md
---
disableUpdateTime: true
---
```

## Git 仓库和编辑链接

Expand All @@ -243,6 +251,14 @@ module.exports = {
};
```

你可以通过在特定的页面设置 frontmatter `disableEditLink``true`来关闭它的`editLinks`

```md
---
disableEditLink: true
---
```

## 回到顶部

```js
Expand Down

0 comments on commit 4e9215c

Please sign in to comment.