页脚
当配置 themeConfig.footer
的时候,VitePress将会在页面底部展示全局的页脚。
⚠️ 警告
当 侧边栏 可见时,不会显示页脚。
配置页脚
typescript
export default {
themeConfig: {
footer: {
message: 'Released under the MIT License.',
copyright: 'Copyright © 2019-present Evan You'
}
}
}
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
typescript
export interface Footer {
// 版权前显示的信息
message?: string
// 实际的版权文本
copyright?: string
}
1
2
3
4
5
6
7
2
3
4
5
6
7
frontmatter 配置
可以使用 frontmatter
上的 footer
选项在单独页面上禁用此功能:
markdown
---
footer: false
---
1
2
3
2
3