Hexo+Github搭建个人博客

安装

参考文档:https://hexo.io/zh-cn/

npm install hexo-cli -g
hexo init euler-king
cd euler-king
npm install
hexo server
访问地址:http://localhost:4000

常用命令

hexo new "postName" #新建文章
hexo new page "pageName" #新建页面
hexo generate #生成静态页面至public目录
hexo server #开启预览访问端口(默认端口4000,'ctrl + c'关闭server)
hexo deploy #部署到GitHub
hexo help  # 查看帮助
hexo version  #查看Hexo的版本

   转载规则


《Hexo+Github搭建个人博客》 Euler 采用 知识共享署名 4.0 国际许可协议 进行许可。
  目录