hexo-theme-redefine
博客Github
中文
中文
  • 项目介绍
  • 开始
    • 安装
    • 使用
    • 更新
  • 配置
    • 创建主题配置文件
    • 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
    • code_copy
    • toc
    • copyright_info
    • website_count
    • local_search
    • comment
      • use
      • Waline
      • Gitalk
      • Twikoo
    • rss
    • lazyload
    • cdn
    • pjax
    • footer
  • 进阶使用
    • 数学公式
    • 创建页面
    • 友链样式
    • 资源压缩
    • 笔记模块
    • 文件比对
    • 文章顶置
由 GitBook 提供支持
在本页
  1. 配置

创建主题配置文件

上一页更新下一页base_info

最后更新于2年前

本页面中

  • 主题配置文件 均指 Hexo 根目录下的 _config.redefine.yml 或者 /themes/redefine/_config.yml 或者 /node_modules/hexo-theme-redefine/_config.yml

  • 站点配置文件 均指 Hexo 根目录下的 _config.yml

为了日后实现平滑升级,请在 Hexo 根目录中创建 _config.redefine.yml 并将全部复制进去保存,以后要更改主题设置就在 _config.redefine.yml 里面更改。

  • _config.redefine.yml 永远都会覆盖主题根目录的 _config.yml 设置

  • 主题更新后,请务必把 /node_modules/hexo-theme-redefine/_config.yml 和 主题配置文件 (_config.redefine.yml) 进行比对。如果文件出现了更改,那你必须要把更改过的项同步在 _config.redefine.yml 中。VS Code 的可能对你迁移有帮助。

  • 请不要删除 _config.yml 中的任何项,否则 _config.redefine.yml 不会生效

本教程左侧目录按照顺序对应 _config.redefine.yml 中的选项,请一步一步来

这里的代码
文件比对