Skip to content

Commit 0b61665

Browse files
Jimmylxuebrc-dd
andauthored
docs: add html in footer example (vuejs#1487)
Co-authored-by: Divyansh Singh <[email protected]>
1 parent ead9b8c commit 0b61665

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/guide/theme-footer.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,17 @@ export interface Footer {
2323
}
2424
```
2525

26+
The above configuration also supports HTML strings. So, for example, if you want to configure footer text to have some links, you can adjust the configuration as follows:
27+
28+
```ts
29+
export default {
30+
themeConfig: {
31+
footer: {
32+
message: 'Released under the <a href="https://github.com/vuejs/vitepress/blob/main/LICENSE">MIT License</a>.',
33+
copyright: 'Copyright © 2019-present <a href="https://github.com/yyx990803">Evan You</a>'
34+
}
35+
}
36+
}
37+
```
38+
2639
Note that footer will not be displayed when the [SideBar](./theme-sidebar) is visible.

0 commit comments

Comments
 (0)