0%

Common Hexo Workflow

Here is the list of common hexo workflow commands.

Create draft

1
2
hexo new draft "your article name"
emacs "your article name"

After this, the draft file will be created under source/_drafts folder without Date tag added.

Publish draft

1
hexo publish "your article name"

After this, the draft will will be move to source/_posts and the internal Date flag will be updated to the publish timestamp.

Test your post

1
2
hexo generate
hexo server

Generate all the static blog file and start the local server.

You can simply do this via alias:

1
hexo g && hexo s

Publish to github page

1
2
hexo generate
hexo deploy

Of course you need to config the git in site _config.yml file. And the hexo will publish the result to github page.

Some memo

  • Manually set article digest
    after this line in your markdown file will be hidden from the homepage.
    <!--more-->