@rspress/plugin-last-updated
Introduction
@rspress/plugin-last-updated is a plugin for displaying the last updated time in articles.
Tip
- When you have configured
lastUpdated: truein the default theme, this plugin will be automatically activated. You don't need to install and register it manually. - You need to commit the markdown file to see the updated time.
Installation
Usage
1. Register the plugin
rspress.config.ts
2. Access at runtime
After registering the plugin, you can get the last updated timestamp of the article at runtime. Here's an example: