From db76b849deaa0ce538aaa00c7448fec8049a734a Mon Sep 17 00:00:00 2001 From: Percy Ma Date: Sun, 29 May 2022 16:07:33 +0000 Subject: [PATCH] docs: add `lastUpdated` config --- docs/config/app-configs.md | 13 +++++++++++++ docs/config/theme-configs.md | 7 +++++++ .../theme-default/components/VPLastUpdated.vue | 2 +- 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/docs/config/app-configs.md b/docs/config/app-configs.md index 47adbec8..631cc347 100644 --- a/docs/config/app-configs.md +++ b/docs/config/app-configs.md @@ -146,3 +146,16 @@ export default { appearance: true } ``` + +## lastUpdated + +- Type: `boolean` +- Default: `false` + +Use git commit to get the timestamp. Some themes may use it. + +```ts +export default { + lastUpdated: true +} +``` diff --git a/docs/config/theme-configs.md b/docs/config/theme-configs.md index d06ef78c..196885f7 100644 --- a/docs/config/theme-configs.md +++ b/docs/config/theme-configs.md @@ -33,6 +33,13 @@ export default { } ``` +## lastUpdated + +- Type: `string` +- Default: `Last Updated` + +The Last Updated prompt text. + ## footer - Type: `Footer` diff --git a/src/client/theme-default/components/VPLastUpdated.vue b/src/client/theme-default/components/VPLastUpdated.vue index 0a974b03..9bc4fe10 100644 --- a/src/client/theme-default/components/VPLastUpdated.vue +++ b/src/client/theme-default/components/VPLastUpdated.vue @@ -18,7 +18,7 @@ onMounted(() => {