Upgrade Blog Theme: 2.0

· 1 min read · 153 Words · -Views -Comments

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 and iissnan/hexo-theme-next. Use next-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.

Authors
Developer, digital product enthusiast, tinkerer, sharer, open source lover