Feed Plugin Config
Intro
The theme can generate feeds via @vuepress/plugin-feed, and you need to manually install the plugin before using.
You can enable this feature by setting plugins.feed to true in theme options. This default behavior generates RSS format feeds for you.
Plugin Options
The theme passes plugins.feed in theme options as plugin options to @vuepress/plugin-feed plugin.
You can pass your own options with plugins.feed, here are some common ones:
booleanWhether to output Atom syntax files.
booleanWhether output JSON syntax files.
booleanWhether to output RSS syntax files.
stringA large image of the feed, used as a banner.
stringA small icon of the feed, displayed in subscription lists.
number100Set the maximum number of items in the feed. After all pages are sorted, the first count items will be intercepted.
If your site has a lot of articles, you may consider this option to reduce feed file size.
(page: Page) => booleanA custom filter function, used to filter feed items.
Its default value is:
({ frontmatter, filePathRelative }) =>
Boolean(
frontmatter.feed ??
frontmatter.article ??
(filePathRelative && !frontmatter.home),
);(pageA: Page, pageB: Page) => numberCustom sorter function for feed items.
The default sorting behavior is by file adding time coming from git (needs @vuepress/plugin-git).
Info
Check feed plugin documentation for all available options.
Changelog
0c1aa-on9a4c3-on7d390-onbdfcb-on8ebe9-on0fe94-on056bb-on497db-on25d44-on32f93-ondf9f4-on8002a-on3a86b-onc8d60-on2243a-on9856d-onad023-onfd395-on1eb77-on0b96a-onfa4f1-on60053-on2e966-on119ca-onf6ff0-on3be03-ona1baa-on3c199-on5ad37-on2d779-on659ab-on6ed69-on4d407-on