Feed Support
The theme provides feed support via@vuepress/plugin-feed. Install @vuepress/plugin-feed manually in your project to use this feature.
Info
vuepress-theme-hope passes plugins.feed from theme options directly to @vuepress/plugin-feed.
Enable Feed Output
The @vuepress/plugin-feed plugin supports generating feed files in three formats:
- Atom 1.0
- JSON 1.1
- RSS 2.0
To enable specific formats, set plugins.feed.atom, plugins.feed.json, or plugins.feed.rss to true in the theme options. Multiple formats can be enabled simultaneously.
Tips
RSS is the standard format. Atom and JSON are maintained for compatibility.
Channel Settings
Customize feed channel information via plugins.feed.channel in the theme options.
Recommended configurations:
- Set
channel.pubDatewith the feed creation date in ISOString format. - Set
channel.ttlfor the content update period (in minutes). - Set
channel.copyrightfor copyright information (falls back to the theme'scopyrightoption). - Set
channel.authorfor the channel author (falls back to the theme'sauthoroption).
Info
By default, the channel title and description inherit the site's name and description. The plugin automatically generates the channel link and last update time.
For detailed options, refer to the Feed Channel Docs.
Generation Control
By default, all articles are included in the feed stream.
To control feed generation for specific articles, configure the feed option in the page Frontmatter. See Feed frontmatter Docs.
To programmatically customize feed item generation, configure plugins.feed.getter. See Feed Getter Docs.
I18n Configuration
The plugin generates separate feeds for each configured language.
Use plugins.feed.locales to apply language-specific settings.
Changelog
2d7bd-on2a19e-onbdfcb-on0fe94-on70aae-on32f93-on2f38e-on2a306-onc8d60-on2243a-onfd395-on60053-on119ca-onf6ff0-on37324-on3c199-on