Upgrade Blog Theme: 2.0
I recently did a second round of blog upgrades to keep technical debt from piling up and becoming painful later.
Quick notes on what changed.
Upgrade the Hexo Framework
# Check and update Hexo, hexo-cli, and related packages
npm-check -u
Hexo 7 is still in RC, and the NexT theme depends on 6.x right now, so I’m holding off on a major upgrade.
Upgrade the NexT Theme
I used to delete the folder and copy in the new version. Now I install it as an NPM package instead — much easier.
npm install hexo-theme-next
This bump moves from 7.8.0
to 8.17.0
.
The release includes a breaking change: move source/_data/next.yml
to the project root and rename it _config.next.yml
.
There are two repos:
next-theme/hexo-theme-next
andiissnan/hexo-theme-next
. Usenext-theme/hexo-theme-next
; that’s the one publishing to npm.
Enable AddToAny
AddThis has shut down, so I switched the sharing service over to AddToAny.
That wraps this round of upgrades.