Configuration guide
Redefine theme configuration guide.
On this page,
Theme configuration file
refers to_config.redefine.yml
or/themes/redefine/_config.yml
or/node_modules/hexo-theme-redefine/_config.yml
in the root directory of HexoSite configuration file
refers to_config.yml
in 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.
📄️ base_info
Please enter your website's basic information accurately in this configuration section.
📄️ style
style This configuration item is used to configure the basic style of the website.
📄️ custom
本部分是指对站点自定义的配置
📄️ social_contact
Set up third-party social links.
📄️ menu
The website's top navigation menu. To add a new menu, fill in the format above, and create the corresponding Hexo page as well.
📄️ home_article
This configuration option is used to set the display of date formats, tags and category information at the bottom of the homepage article blocks.
📄️ post
This configuration item is used to set whether to display article word count, reading time and author identification.
📄️ code_block
- enable true | false
📄️ toc
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.
📄️ copyright_info
This configuration item is used to open the article copyright information module of the article content page.
📄️ website_count
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.
📄️ local_search
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.
📄️ comment
This configuration item is used to enable and set up the theme's comment system.
📄️ friend_links
This is used to set the number of columns on the friend links page
📄️ tags
用来设置标签页面的显示效果
📄️ rss
This configuration item is used to enable the RSS subscription function.
📄️ lazyload
This configuration item is used to enable lazy loading of images.
📄️ cdn
- When this option is set to false, the CDN feature will not be used.
📄️ fontawesome
The Fontawesome Pro v6.2.1 version is included in Redefine theme, you can enable the following icon series:
📄️ recommended_article
The article recommendation module at the bottom of the article will automatically recommend according to the keywords of the article.
📄️ pjax
This configuration option enables the PJAX feature of the theme, providing a single-page application experience.
📄️ footer
This configuration item is used to set the information displayed at the bottom of the website.
📄️ inject
This configuration option allows you to add custom CSS, script, and other HTML code to the header and footer.
📄️ plugins
For configuration, please refer to Theme Plugin Config