-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add docs about lastUpdated (#1731)
- Loading branch information
Showing
1 changed file
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
--- | ||
``` | ||
|