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