Skip to content

Migrating from 1.x to 2.x

uiolee edited this page Apr 7, 2024 · 7 revisions

Theme

Theme variables were changed in Hexo 2.0. page in archive/category/tag simplified layout was replaced with page.posts. You can follow this commit to modify your theme or clone the repo.

$ git clone https://github.com/tommy351/hexo-theme-light themes/light

Help

Now you can run hexo help <command> for more useful information!

Error Handling

Error handling is better in Hexo 2.0. When an error occurred or in debug mode, Hexo'll dump log file to debug.log in the following format. Please report your issue with this file.

date: 2013-08-23 22:48:44.561
argv: node /Users/SkyArrow/.nvm/v0.10.13/bin/hexo --debug
os: Darwin 12.4.0 darwin x64
version:
  hexo: 2.0.0-rc2
  http_parser: 1.0
  node: 0.10.13
  v8: 3.14.5.9
  ares: 1.9.0-DEV
  uv: 0.10.12
  zlib: 1.2.3
  modules: 11
  openssl: 1.0.1e
---

[debug] 22:48:44.597 Configuration file load successfully
[debug] 22:48:44.609 Version info checked successfully
[debug] 22:48:44.612 Loading the database...

Caution

Attention! This wiki is no longer maintained.

Please visit the official website. https://hexo.io/

Clone this wiki locally