Upgrade Blog Theme: 2.0

This post covers upgrading the blog theme, including workflow and key details, to streamline the process.

Jun 3, 2023 · 1 min read · 153 Words · -Views -Comments · Programming
Blog Tooling 🇨🇳 阅读中文版
Read with AI

Choose an AI assistant

ChatGPT Open in a new tab with the article link and prompt
Claude Copy the prompt, then open Claude

Open Claude
Trouble reading the article?

If the prompt is missing, copy the full prompt below into your AI assistant. If the AI cannot read the article, paste the visible passage you want to discuss and add your question.

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