Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. 快速开始 前期准备 新建工程 1 $ he
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
快速开始
前期准备
新建工程
1
$ hexo init
已经存在工程,check下来后,需要安装hexo
1
$ npm install hexo --save
一.创建文章(cd到博客目录)
1
$ hexo new "XXX文章"
More info: Writing
二.本地预览(可以省略)
1
$ hexo server
或者
1
$ hexo s
More info: Server
三.生成静 大专栏 Hexo常用命令态文件(发布前必要操作)
1
$ hexo generate
或者
1
$ hexo g
More info: Generating
四.发布文章(推送到github)
1
$ hexo deploy
清空本地缓存
1
$ hexo clean
总结
先生成静态文件,然后发布,推送到github
1
2
3
4
5
6
7
hexo clean
hexo g # 作用:建立静态页面, 简写 hexo g
gulp # 压缩静态资源
hexo d # 部署自己的blog,本人部署在了Git上,简写 hexo d
hexo server # 以启动本地服务, 可预览,简写 hexo s
hexo new blog_name # 新建以blog_name为名的blog
在.md文档中加入 <!-- more --> 可以显示“阅读全文”
我的博客静态资源 https://github.com/andli0626/andli0626.github.io.git
More info: Deployment