hexo github搭建博客常用的命令

这些命令你都用过吗?

npm install hexo -g #安装

npm update hexo -g #升级

hexo init #初始化

hexo new "postName" #新建文章

hexo new page "pageName" #新建页面

hexo generate #生成静态页面至public目录

hexo server #开启预览访问端口(默认端口4000,'ctrl + c'关闭server)

hexo deploy #将.deploy目录部署到GitHub

hexo n #写文章

hexo g #生成

hexo d #部署 #可与hexo g合并为hexo d -g

一般操作,在博客下调出cmd命令窗口:

hexo new "xx"

在E:\MyBlog\source_posts下,找到xx.md

用markdown抒写,完成后,先开启本地测试hexo s

没有问题后,hexo d -g

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值