`, // 赞赏内容,支持 HTML
// expand: false, // 是否默认展开,默认 false
//
// icon: "alipay", // 赞赏图标,内置 weChatPay 和 alipay
// expandTitle: "打赏支持", // 展开标题,支持 HTML
// collapseTitle: "下次一定", // 折叠标题,支持 HTML
// content: `
`, // 赞赏内容,支持 HTML
// expand: false, // 是否默认展开,默认 false
// },
// },
articleShare: {
enabled: true, // 是否开启文章链接分享功能
text: "分享此页面", // 分享按钮文本
copiedText: "链接已复制", // 复制成功文本
query: false, // 是否包含查询参数
hash: false, // 是否包含哈希值
},
articleTopTip: (frontmatter, localeIndex, page) => {
const tip: Record作者:${author}
// //版权:此文章版权归 ${author} 所有,如有转载,请注明出处!
// `, // }; // }, articleUpdate: { enabled: true, // 是否启用文章最近更新栏 limit: 3, // 文章最近更新栏显示数量 }, private: { enabled: true, expire: "1h", session: true, siteLogin: false, pages: [ { username: "teek", password: "teek", expire: "1d", session: true, strategy: "once" }, ], realm: { blog: [ { username: "teek", password: "teek", expire: "1d", session: true, strategy: "once" }, ], comment: [ { username: "teek", password: "teek", expire: "1d", session: true, strategy: "always" }, ], }, // onFocus: (value, formName) => {}, // onBlur: (value, formName) => {}, // doLogin: (loginInfo, type, nativeExecLogin) => true, // doValidate: (type, frontmatter, nativeExecLogin) => true, // encrypt: (value, frontmatter) => value, // decrypt: (value, frontmatter) => value, }, // post: { // coverImgMode: "full", // }, vitePlugins: { permalink: true, sidebarOption: { // resolveRule: "rewrites", collapsed: false, // true 开启侧边栏折叠功能,并默认折叠,false 开启侧边栏折叠功能,但是默认不折叠 }, autoFrontmatter: true, autoFrontmatterOption: { permalink: false, permalinkRules: [ // { folderName: "01.guide", rule: "/$path/$uuid6" }, // 使用一级目录的哈希混合随机数,$path 最终等于 guide // { folderName: "10.配置", rule: "/reference/$uuid6" }, // 使用混合固定字符串和随机数 // { folderName: "15.主题开发", rule: "/willRemove/develop/$uuid6", removeLevel: 1 }, // 先移除一层前缀,再添加前缀,等价于 /develop/$uuid6 // { folderName: "20.资源", rule: "/test-$uuid4-$uuid2/aaa/" }, // 使用混合固定字符串和随机数 // { folderName: "30.生态", rule: "/$path-$uuid2/teek/$uuid" }, // 使用一级目录的哈希混合随机数 // // { folderName: "*" }, // '*' 代表所有文件都生成永久链接,不设置 rule 则默认为 /$path/$uuid6 ], categories: false, coverImg: true, // 开启自动生成封面图链接功能 forceCoverImg: false, // 强制重新生成 coverImg 的属性值 coverImgList: wallPapper, // 封面图链接数组 }, }, });