Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

next主题怎么更新呢? #1539

Closed
cwyaml opened this issue Mar 24, 2017 · 5 comments
Closed

next主题怎么更新呢? #1539

cwyaml opened this issue Mar 24, 2017 · 5 comments

Comments

@cwyaml
Copy link

cwyaml commented Mar 24, 2017

比如说,我是用的是版本1.0 更改了自己的各种配置
然后出了2.0版本。怎样在保留自己的配置的前提下更新主题呢??

@Acris
Copy link
Collaborator

Acris commented Mar 24, 2017

You can use Hexo data files, See #328 for more information.

@Wangjunyu
Copy link

参考我的博客:参考信息化管理的博客版本升级策略
我也是准备从过去的版本做升级,但是没有采用 #328 的方式,因为自己做了大量的改动,此次升级的基本思路如下:

  • 原版本博客进行备份
  • 搭建测试环境,部署新的模版,用其他的域名先跑起来
  • 新旧版本对比,明确功能差异
  • 基于新版本进行配置修改,并做好记录

为什么要这么麻烦:

  • 原有的博客配置文件做了很多个性化配置,需要梳理
  • 希望充分发挥新版本的新功能优势,所以尽量以新版本为主

@ivan-nginx
Copy link
Collaborator

@cwyaml solved?

@xiaobai050
Copy link

xiaobai050 commented Nov 11, 2018

@cwyaml @Wangjunyu
我用临时构建git主题仓库的方式,感觉还好,写了篇分享。
https://zhangnai.xin/2018/11/11/hexo-theme-upgrade/

@zq1997
Copy link

zq1997 commented Mar 31, 2019

@cwyamlgit branchgit merge 命令可以自动解决这些问题,除了需要手动处理一下双方修改引起的冲突,参考我的博客
I solved this problem by git branch and git merge such that config&update&conflict could be handled easily, you can refer my blog for detail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants