創(chuàng)建Cithub域名與空間
-
注冊(cè)
-
創(chuàng)建倉庫
本地環(huán)境搭建
- 安裝Git
- 安裝Node
- 安裝Hexo
npm install hexo-cli -g
新建一個(gè)存放博客的文件夾folder帝际,Git Bash環(huán)境中操作
hexo init <folder>
cd <folder>
git clone https://github.com/iissnan/hexo-theme-next
npm install
基礎(chǔ)配置
username.github.io/_config.yml
主題配置username.github.io/themes/next/_config.yml
測(cè)試
$ hexo s
在username.github.io/source/_posts
文件夾下編輯文本
屬性設(shè)置后面必須留空格, 不然會(huì)報(bào)錯(cuò)