Footer
vuepress-theme-hope provides footer feature for all pages.
Introduction
Footer contains customizable footer content and copyright information.
You can set the default footer content and copyright information globally using footer, copyright and license in theme options.
Different Locales
You can customize these options for each language individually under locales field in theme options.
You can also set footer, copyright and license options in page frontmatter to customize a specific page.
Footer Config
The footer content will be inserted with v-html command, so both HTML and plain text are supported. You can set global content using footer in theme options.
The footer is hidden by default. If you want to display it globally by default, please set displayFooter: true in theme options.
- When footer is hidden by default, setting
footer: truein frontmatter will display the default footer. - When footer is displayed by default, set
footer: falsein frontmatter will disable the default footer. - If
footerin frontmatter is a string, it will be inserted into the footer as content withv-htmlcommand, so both HTML and plain text are supported.
Copyright Information
You can set the copyright and license information globally or for a specific page using copyright and license.
copyrightfield indicates the content of the copyright information, which will be inserted withv-htmlcommand, so both HTML and plain text are supported. You can setfalseto hide the copyright information of this page.licensefield indicates the name of the license. We recommend that you strictly follow the provisions of the license for specification. After specifying,copyrightwill have the default copyright information based on the license name (of course, you can still customizecopyright).
Examples
Display default footer text:
--- footer: true ---When you set
displayFooter: truein theme options, you can also disable it locally:--- footer: false ---Customize footer text without displaying copyright information:
--- footer: This site is served by GitHub Pages copyright: false ---Customize footer content and copyright information:
--- footer: <a href="https://github.com/Mister-Hope"> Mr.Hope </a> license: CC 4.0 ---To remove the default footer content while displaying a customized copyright information:
--- footer: "" copyright: Customized copyright text ---
Changelog
904de-one1ab4-ond8aeb-on8174c-on9856d-on1bd08-onfd395-on1eb77-on716f9-onf6ff0-on3c199-on