🇨🇦
hexo-theme-redefine
BlogGithub
English
English
  • Project Description
  • Get Started
    • Installation
    • Update
    • Usage
  • Configuration
    • Create a theme config file
    • base_info
    • style
      • primary_color
      • avatar
      • favicon
      • article_img_align
      • left_side_width
      • content_max_width
      • nav_color
      • hover
      • first_screen
      • scroll
    • social_contact
    • menu
    • home_article
    • post
      • word_count
      • author_label
    • toc
    • copyright_info
    • website_count
    • local_search
    • comment
      • use
      • Waline
      • Gitalk
      • Twikoo
    • rss
    • lazyload
    • cdn
    • pjax
    • footer
  • Advanced
    • Create a page
    • Note modules
    • Article top
    • Mathematical formula
    • Friendship style
    • file comparison
    • Resource compression
Powered by GitBook
On this page
  1. Configuration

Create a theme config file

In this page, the

theme configuration files refer to _config.redefine.yml or /themes/redefine/_config.yml or /node_modules/hexo-theme-redefine/_config.yml in the Hexo root directory

The site configuration file refers to _config.yml in the Hexo root directory

For a smooth upgrade in the future, please create _config.redefine.yml in the Hexo root directory and put [the code here](https://github.com/EvanNotFound/hexo-theme-redefine/blob/ main/_config.yml) are all copied in and saved. If you want to change the theme settings in the future, you can change them in _config.redefine.yml.

Note the following:

  1. _config.redefine.yml will always override the _config.yml settings in the theme root

  2. After the theme is updated, be sure to compare /node_modules/hexo-theme-redefine/_config.yml with the theme configuration file (_config.redefine.yml). If the file has changed, you must synchronize the changed items in _config.redefine.yml. VS Code's file comparison may be helpful for your migration.

  3. Please do not delete any items in _config.yml, otherwise _config.redefine.yml will not take effect

The directories on the left side of this tutorial correspond to the options in _config.redefine.yml in order, please follow them step by step

PreviousUsageNextbase_info

Last updated 2 years ago