docs: add `lastUpdated` config

pull/683/head
Percy Ma 3 years ago committed by GitHub
parent 97aafbd0d9
commit db76b849de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -146,3 +146,16 @@ export default {
appearance: true appearance: true
} }
``` ```
## lastUpdated
- Type: `boolean`
- Default: `false`
Use git commit to get the timestamp. Some themes may use it.
```ts
export default {
lastUpdated: true
}
```

@ -33,6 +33,13 @@ export default {
} }
``` ```
## lastUpdated
- Type: `string`
- Default: `Last Updated`
The Last Updated prompt text.
## footer ## footer
- Type: `Footer` - Type: `Footer`

@ -18,7 +18,7 @@ onMounted(() => {
<template> <template>
<div> <div>
{{ theme.lastUpdated ?? 'Edit this page' }}: {{ theme.lastUpdated ?? 'Last Updated' }}:
<time :datatime="isoDatetime"> <time :datatime="isoDatetime">
{{ datetime }} {{ datetime }}
</time> </time>

Loading…
Cancel
Save