创建Cithub域名与空间
-
注册
注册GitHub账户.png
-
创建仓库
创建新的仓库.png
本地环境搭建
- 安装Git
- 安装Node
- 安装Hexo
npm install hexo-cli -g
新建一个存放博客的文件夹folder,Git Bash环境中操作
hexo init <folder>
cd <folder>
git clone https://github.com/iissnan/hexo-theme-next
npm install

基础配置
username.github.io/_config.yml
主题配置username.github.io/themes/next/_config.yml


测试
$ hexo s
在username.github.io/source/_posts
文件夹下编辑文本
属性设置后面必须留空格, 不然会报错
网友评论