You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
vitepress/docs/reference/default-theme-last-updated.md

28 lines
660 B

# Last Updated
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.
::: tip
You need to commit the markdown file to see the updated time.
:::
## Site-Level Config
```js
export default {
lastUpdated: true
}
```
## Frontmatter Config
This can be disabled per-page using the `lastUpdated` option on frontmatter:
```yaml
---
lastUpdated: false
---
```
1 year ago
Also refer [Default Theme: Last Updated](./default-theme-config#lastupdated) for more details. Any truthy value at theme-level will also enable the feature unless explicitly disabled at site or page level.