From Wordpress to Hexo

Managed to finish the first cut of migration of wordpress.

Issue resolved
The main issue lies in having an error while migrating wordpress posts. After some debugging, I realised that the npm package “hexo-migrator-wordpress” is actually different from the version found on github.

After checking the last updated date on both the npm package site and github, I found out that the npm package was outdated. Resolved this issue by replacting the content in “/node_modules/hexo-migrator-wordpress” with a fresh copy downloaded from github. Also I checked the pull requests and downloaded the version with the latest code commits, instead of the official master copy.

Dev environment setup

  • iTerm pane 1: hexo s –debug
  • iTerm pane 2: hexo generate –watch
  • iTerm pane 3: vim

TODO

Yangfan 扬帆 wechat
微信公众号WeChat ID miss_yangfanzhang.