使用hexo撰写博客

发布新博客:Writing

1
$ hexo new "My New Post"

本地运行hexo查看结果:Server

1
$ hexo server

生成静态页面:Generating

1
$ hexo generate

发布博客: Deployment

1
$ hexo deploy

遇到的一些问题:

  1. 更换电脑后,运行hexo s提示nodejs版本不对,解决方案:
    1
    2
    3
    cd $(hexo home dir)
    rm -fr node_modules
    npm install
Contents
,