mirror of https://github.com/vuejs/vitepress
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
517 B
27 lines
517 B
# 页脚 {#footer}
|
|
|
|
配置 `themeConfig.footer` 可以使 VitePress 在页面底部展示全局的页脚。
|
|
|
|
```ts
|
|
export default {
|
|
themeConfig: {
|
|
footer: {
|
|
message: 'Released under the MIT License.',
|
|
copyright: 'Copyright © 2019-present Evan You'
|
|
}
|
|
}
|
|
}
|
|
```
|
|
|
|
```ts
|
|
export interface Footer {
|
|
// The message shown rigth before copyright.
|
|
message?: string
|
|
|
|
// The actual copyright text.
|
|
copyright?: string
|
|
}
|
|
```
|
|
|
|
注意,当[侧边栏](./theme-sidebar)可见时,不会显示页脚。
|