Hi, theme-melody!

init

hexo init [folder]

Initializes a website.

new

hexo new [layout] <title>  # hexo new post ${article}

Creates a new article.

generate

$ hexo generate  # hexo g

Generates static files.

Option Description
-d, –deploy Deploy after generation finishes
-w, –watch Watch file changes
-b, –bail Raise an error if any unhandled exception is thrown during generation
-f, –force Force regenerate

publish

$ hexo publish [layout] <filename>

Publishes a draft.

server

$ hexo server # hexo s
Option Description
-p, –port Override default port
-s, –static Only serve static files
-l, –log Enable logger. Override logger format

Starts a local server. By default, this is at http://localhost:4000/.

deploy

$ hexo deploy # hexo d

clean

$ hexo clean

end

I spent an afternoon updating blog topics and migrating articles.The theme has been updated to melody and I like it very much!

(To be continue…)

文章作者: throwable
文章链接: https://zjcscut.github.io/2018/11/04/helloworld/
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 Throwbale
❤支付宝打赏❤
❤微信打赏❤