Update Hexo Blog
2025-11-29 17:41:30

This is a cheat sheet for updating your hexo blogs, which assumes you have already set up the theme.

Add a blog

1
$ hexo new [layout] <title>

In my case I generally use post for layout, also since I’m using local environment I run commands with npx.

Build & Deploy

1
$ hexo clean && hexo g

This will clean the old generated files and regenerate the static files.

1
$ hexo s

This allows you to preview locally.

1
$ hexo d # or directly hexo clean && hexo g && hexo d

This will deploy the static files to the platform (should be configured in the _config.yml).


For more detail check official docs

Prev
2025-11-29 17:41:30