插件 Frontmatter 配置
大约 1 分钟
你可以在页面的 frontmatter 配置以下选项控制插件行为。
@vuepress/plugin-copyright 选项
copy.triggerLength
number默认值
100触发附加版权的最小字数。
copy.disableCopy
boolean禁用复制。
copy.disableSelection
boolean禁用选择。
@vuepress/plugin-feed 选项
feed.title
stringFeed 项目的标题。
feed.description
stringFeed 项目的描述。
feed.content
stringFeed 项目的内容。
feed.author
FeedAuthor[] | FeedAuthorFeed 项目的作者。
FeedAuthor 格式
interface FeedAuthor {
/**
* 作者名字
*/
name?: string;
/**
* 作者邮件
*/
email?: string;
/**
* 作者网站
*
* @description json format only
*/
url?: string;
/**
* 作者头像
*
* @description json format only
*/
avatar?: string;
}feed.contributor
FeedContributor[] | FeedContributorFeed 项目的贡献者。
FeedContributor 格式
interface FeedContributor {
/**
* 作者名字
*/
name?: string;
/**
* 作者邮件
*/
email?: string;
/**
* 作者网站
*
* @description json format only
*/
url?: string;
/**
* 作者头像
*
* @description json format only
*/
avatar?: string;
}feed.guid
stringFeed 项目的标识符,用于标识 Feed 项目。
注
你应该确保此项全局唯一。
@vuepress/plugin-sitemap 选项
sitemap.changefreq
"always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | "never"默认值
"daily"页面默认更新频率。它会覆盖插件选项中的 changefreq 选项。
sitemap.exclude
boolean是否不输出此页面到 Sitemap。
sitemap.priority
number默认值
0.5页面优先级,范围 0 至 1。
更新日志
2026/9/28 12:45
查看所有更新日志
0c1aa-于636cc-于0fe94-于9043a-于86180-于8174c-于223f7-于9856d-于1eb77-于4164d-于5ad37-于2d779-于659ab-于6ed69-于da21a-于4d407-于