Blog Plugin Config
Intro
The theme provides blog feature via @vuepress/plugin-blog, and it's not enabled by default.
You can enable blog feature by setting plugins.blog to true in theme options.
For instructions, please see Blog Intro.
Options
booleantrueWhether generate excerpt for page.
string<!-- more -->Separator used to split excerpt from page content.
number300Length of excerpt when auto generating.
Note
The length of the excerpt will be as close as possible to this value. If it is set to 0, it means no excerpt will be generated automatically.
(page: Page) => booleanPage filter, determine whether a page should be included.
By default, all the pages generated from Markdown files but not homepage will be included as articles.
Its default value is:
({ frontmatter, filePathRelative }) =>
frontmatter.article ?? (Boolean(filePathRelative) && !frontmatter.home);(page: Page) => booleanPage filter, determine whether the plugin should generate excerpt for it.
(name: string) => string(name) => name.replace(/ _/g, '-').replace(/[:?*|\\/<>]/g, "").toLowerCase()Slugify function, used to convert key name which they are register in routes.
BlogTypeOptions[][]Additional article type.
See also: Guide → Article List.
stringUnique type name.
(page: Page) => booleanA filter function to determine whether a page should be the type.
(pageA: Page, pageB: Page) => numberA custom function to sort the pages.
string | false/:key/Page path to be registered, set to false to disable the type page.
stringBlogLayout name.
(localePath: string) => Record<string, string>Frontmatter.
string/article/Article list route path.
string/category/Category map route path.
string/category/:name/Category list route path. :name will be replaced by category name.
string/tag/Tag map route path.
string/tag/:name/Tag list route path. :name will be replaced by tag name.
string/star/Star article list route path.
string/timeline/Timeline list route path.
boolean--debug flag Whether to enable hot reload in the development server.
Changelog
0c1aa-on1e9f5-onb1230-ondd4a8-on8ebe9-on05c41-on497db-on25d44-oncad92-on2a306-on63a5e-ona0e17-on3cac1-on32267-onadde3-on6a956-on9856d-onad023-one07b5-onfd395-on1eb77-onbcf02-on716f9-on119ca-onf6ff0-onc8059-on3be03-on3c199-on