docs: add docs about lastUpdated (#1731)

pull/1747/head
ZhenYu Li 2 years ago committed by GitHub
parent 9df598f36e
commit c4870ba665
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,3 +1,25 @@
# Last Updated
Documentation coming soon...
The update time of the last content will be displayed in the lower right corner of the page.
To enable it, add `lastUpdated` options to your config.
## Page Configuration
Add `lastUpdated` options to your config.
```js
export default {
lastUpdated: true
}
```
## Frontmatter Configuration
If you would like to hide the last update text, set false to the `lastUpdated` option.
```yaml
---
lastUpdated: false
---
```

Loading…
Cancel
Save