Hexo 3.0 has finally come out! After four beta and four RC versions, Hexo 3 become more stable and more powerful. Thanks for the contributors and testers!
What’s Changed?
There’re many improvements in Hexo 3. Better performance, API is easier to use, higher coverage, etc. Here’re some notable changes:
- New CLI: Command line interface is separated into a stand-alone module: hexo-cli
- Slimmer Core Module: Generators, deployers and server are also separated from the main module.
- New Generator API: Generator API changed a lot in Hexo 3.
- Include Assets in a Post: Serveral useful tag plugins are added in Hexo 3:
post_path
,post_link
,asset_path
,asset_link
,asset_img
. - Async Tag Plugins: Tag plugins can do async jobs now!
- Timezone Support: You can define the timezone of your site now.
More info: Breaking Changes in Hexo 3.0, changelog
How to Update?
Modify
package.json
.{"hexo": {"version": ""}}Install hexo-cli. If any error occurred, try to remove hexo first.
$ npm install hexo-cli -gInstall Hexo.
$ npm install hexo --saveInstall plugins. You don’t have to install all the following plugins. It depends on your need.
$ npm install hexo-server --save$ npm install hexo-generator-index --save$ npm install hexo-generator-archive --save$ npm install hexo-generator-category --save$ npm install hexo-generator-tag --save$ npm install hexo-deployer-git --save$ npm install hexo-deployer-heroku --save$ npm install hexo-deployer-rsync --save$ npm install hexo-deployer-openshift --saveUpdate plugins. Especially generators and filters. Since the API has breaking changes in Hexo 3.
More info: Migration from 2.x to 3.0