I recently migrated this blog from Workdpress to hexo which is light-weighted and suitable for raspberry-pi.
I am still learning hexo and want to note down commands for regular workflow.
hexo new post '<post title>'
Hexo will start a web server listing to port 4000.
The server is not very performant and is mostly for testing.
hexo deploy -g
Hexo will generate static website for the blog in public folder, which is ready to serve by nginx.
db.json contains data like tags and categories. To update these data, run
hexo clean and redeploy.