Skip to content

Commit 49f036d

Browse files
committed
docs($plugin-last-updated): add more references
1 parent 3c702a7 commit 49f036d

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

packages/docs/docs/theme/default-theme-config.md

+5
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,11 @@ Note that it's `off` by default. If given a `string`, it will be displayed as a
362362
Since `lastUpdated` is based on `git`, you can only use it in a `git` repository. Also, since the timestamp used comes from the git commit, it will display only after a first commit for a given page, and update only on subsequent commits of that page.
363363
:::
364364

365+
366+
**Also see:**
367+
368+
- [@vuepress/plugin-last-updated](../plugin/official/plugin-last-updated.md)
369+
365370
## Service Worker
366371

367372
The `themeConfig.serviceWorker` option allows you to configure the service worker.

packages/docs/docs/zh/theme/default-theme-config.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -354,9 +354,13 @@ module.exports = {
354354
请注意,`themeConfig.lastUpdated` 默认是关闭的,如果给定一个字符串,它将会作为前缀显示(默认值是:`Last Updated`)。
355355

356356
::: warning 使用须知
357-
由于 `lastUpdated` 是基于 `git` 的, 所以你只能在一个基于 `git` 的项目中启用它。
357+
由于 `lastUpdated` 是基于 `git` 的, 所以你只能在一个基于 `git` 的项目中启用它。此外,由于使用的时间戳来自 git commit,因此它将仅在给定页的第一次提交之后显示,并且仅在该页面后续提交更改时更新。
358358
:::
359359

360+
**拓展阅读:**
361+
362+
- [@vuepress/plugin-last-updated](../plugin/official/plugin-last-updated.md)
363+
360364
## Service Worker
361365

362366
`themeConfig.serviceWorker` 允许你去配置 Service Worker。

0 commit comments

Comments
 (0)