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
}
```
## 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
- Type: `Footer`

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

Loading…
Cancel
Save