title: Hexo创建博客流程 date: 2020-10-06 14:40:25 tags:
Blog
准备工作
安装Node.js
安装淘宝cnpm管理器
npm install
-g cnpm
--registry
=http
://registry
.npm
.taobao
.org
安装hexo 框架
```java
cnpm install -g hexo-cli ```
创建blog目录并进入
mkdir blog
cd blog
建立Hexo
hexo init
hexo s
hexo n
"我的第一篇文章"
hexo clean
hexo g
部署到Github
cnpm install
--save hexo
-deployer
-git
deploy
:
type
: git
repo
: https
://github
.com
/YourGithubName
/YourGithubName
.github
.io
.git
branch
: master
hexo d
更换主题
git clone https
://github
.com
/litten
/hexo
-theme
-yilia
.git themes
/yilia
配置_config
.yml: theme
:yilia
再重新导入github即可
转载请注明原文地址:https://blackberry.8miu.com/read-31651.html