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.
Quick Start
Create a new post
1 | $ hexo new "My New Post" |
More info: Writing
Run server
1 | $ hexo server |
More info: Server
Generate static files
1 | $ hexo generate |
More info: Generating
Deploy to remote sites
1 | $ hexo deploy |
hexo命令行使用
1 | hexo help #查看帮助 |
文章内容
1 | title: Hello World |
每次deploy时不输入邮箱和密码
如果觉得每次部署的时候都要输入用户名和密码,可以这样解决:开始,到你的用户目录下新建一个_netrc文件。
我的操作:可以直接复制一个.gitconfig文件复件,然后改名为_netrc,注意:n前面有个下划线。
然后把_netrc文件拖入notepad++ 里,输入:1
2
3machine github.com
login hello
password hello123
More info: Deployment
简书上几个号的hexo搭建博客教程
璀璨星空: windows下搭建hexo博客
吴小龙同學: 手把手教你建github技术博客
潘柏信: HEXO+Github,搭建属于自己的博客