手把手教你搭建HEXO博客(一)
2018-06-09 本文已影响8人
hojun
![](https://img.haomeiwen.com/i2597553/f9b97257734e217b.jpg)
手把手教你搭建HEXO+Github博客 (系列教程一)
为什么推荐hexo+github?
最重要两点:简单、免费
环境搭建
node安装
百度搜索node,进入官网。下载稳定版:
![](https://img.haomeiwen.com/i2597553/82b71e4ba0a3b951.jpg)
下载好后直接打开安装
![](https://img.haomeiwen.com/i2597553/b5910826d1638821.jpg)
我这里将其安装在D盘(可以自己选择安装位置)
![](https://img.haomeiwen.com/i2597553/9885a79f5b19b7ff.jpg)
可以看到安装包中已经自带npm包管理工具
![](https://img.haomeiwen.com/i2597553/7677424c42788964.jpg)
等待安装完成后,WIN+R打开运行对话框。输入cmd带开命令行控制程序。
![](https://img.haomeiwen.com/i2597553/3d7081f279b37a8f.jpg)
输入node -v命令检测node是否安装成功。成功会显示出版本号
![](https://img.haomeiwen.com/i2597553/87f784b671392da0.jpg)
github注册
百度搜索github,进入官网注册。(注意:用户名跟你的博客域名有关,请慎重取名)
![](https://img.haomeiwen.com/i2597553/0622ffa0619e154f.jpg)
选择free
![](https://img.haomeiwen.com/i2597553/81446fc8f71eb047.jpg)
点击start
![](https://img.haomeiwen.com/i2597553/accf5c19490f3f01.jpg)
会叫你去验证邮箱
![](https://img.haomeiwen.com/i2597553/cbb1a9e07f42befe.jpg)
进入注册的邮箱,打开github给我们发送的邮件
![](https://img.haomeiwen.com/i2597553/53601ac7c7a169b0.jpg)
点击验证链接
![](https://img.haomeiwen.com/i2597553/b99547c1f4f2bbfa.jpg)
验证完成后点击start,创建仓库。仓库名必须为'用户名.github.io'
![](https://img.haomeiwen.com/i2597553/69a4b6745def6a89.jpg)
创建好后我们来新建个文件,点击Create new file
![](https://img.haomeiwen.com/i2597553/d4f3dbe8e2e76750.jpg)
文件为index.html,内容为
<h1>Hello Github Pages</h1>
![](https://img.haomeiwen.com/i2597553/42fb765e8461dc99.jpg)
复制你的仓库名————用户名.github.io
![](https://img.haomeiwen.com/i2597553/cf707e6d0937ce0f.jpg)
在浏览器中粘贴,访问。看到如下页面(即使我们刚刚输入的内容)
![](https://img.haomeiwen.com/i2597553/d2b5ed93697791ab.jpg)
视频教程-node安装
视频教程-github注册
To Be Continued...(未完待续)
支持作者请悦读百家号文章链接,谢谢~