Mac通过HEXO搭建博客

来源:互联网 发布:写c语言用什么软件 编辑:程序博客网 时间:2024/04/25 08:56

安装node.js

Hexo基于node.js的,官网下载。版本选择大于3.0。

正式安装

npm install -g hexo-cli --no-optional

cd ~/Document/hexo

hexo init

npm install

后期部署

添加文章

hexo new "postName"

其中postName是博客名。

生成静态页面

hexo generate
hexo g

本地启动

hexo sever hexo s

以后每次执行就可以依次输入下面三行命令:

hexo clean
hexo generate
hexo deploy


原创粉丝点击