The _config.yml
file in the theme directory is usually responsible for theme-related configuration. We strongly recommend that you use a replacement theme configuration file to prevent your configuration from being lost. So how to use instead of theme configuration files?
Create a new file next to the _config.yml
file in the blog root directory: _config.volantis.yml
, the configuration information in this file has priority over the configuration files in the theme folder.
When you need to modify something, such as the navigation bar menu, then you need to find the relevant content in the theme configuration file and copy it into the configuration file you created:
navbar: |
hint
For themes installed using "npm i hexo-theme-volantis
", the theme configuration file is in "blog/node_modules/hexo-theme-volantis/_config.yml
"
The theme installed in the traditional way, the theme configuration file is in "blog/themes/volantis/_config.yml
"