Redefine theme configuration guide.
On this page,
Theme configuration filerefers to
/node_modules/hexo-theme-redefine/_config.ymlin the root directory of Hexo
Site configuration filerefers to
_config.ymlin the root directory of Hexo
📄️ Create theme configuration file
To achieve smooth upgrades in the future, please create config.redefine.yml in the **root directory of Hexo** and copy the code here into it and save. From now on, to change the theme settings, modify _config.redefine.yml.
Please enter your website's basic information accurately in this configuration section.
style This configuration item is used to configure the basic style of the website.
Set up third-party social links.
The website's top navigation menu. To add a new menu, fill in the format above, and create the corresponding Hexo page as well.
This configuration option is used to set the display of date formats, tags and category information at the bottom of the homepage article blocks.
This configuration item is used to set whether to display article word count, reading time and author identification.
- enable true | false
This configuration item is used to set the TOC directory structure of the article. It is a very practical function. You can quickly view the article directory structure and jump. It is recommended to enable it.
This configuration item is used to open the article copyright information module of the article content page.
This configuration item is used to set the website count. Redefine theme has built-in no garlic count, no additional configuration is required, just directly select the count item you want to enable.
This configuration item is used to set the website search function, which is very practical and is recommended to be enabled. When enabled, a search button will appear on the right side of the navigation bar in the header.
This configuration item is used to enable and set up the theme's comment system.
This is used to set the number of columns on the friend links page
This configuration item is used to enable the RSS subscription function.
This configuration item is used to enable lazy loading of images.
- When this option is set to false, the CDN feature will not be used.
The Fontawesome Pro v6.2.1 version is included in Redefine theme, you can enable the following icon series:
The article recommendation module at the bottom of the article will automatically recommend according to the keywords of the article.
This configuration option enables the PJAX feature of the theme, providing a single-page application experience.
This configuration item is used to set the information displayed at the bottom of the website.
This configuration option allows you to add custom CSS, script, and other HTML code to the header and footer.
For configuration, please refer to Theme Plugin Config