建站博客笔记
-
npm install hexo-cli -g 下载博客框架
-
npm config set registry https://registry.npm.taobao.org 安装淘宝源
-
hexo init blog 初始化
-
npm install
-
hexo server 打开网页
-
git config --global user.name “mirenruan” github名字
-
git config --global user.email “2218475621@qq.com”
-
cat ~/.ssh/id_rsa.pub 查看有没有ssh密钥
-
ssh-keygen -t rsa -C “hehe”生成密钥
-
cat ~/.ssh/id_rsa.pub 查看生成的密钥
-
ssh -T git@github.com
-
cnpm install --save hexo-deployer-git
-
修改配置文件 repo: https://github.com/mirenruan/Zhuai.github.io.git
branch: master -
主题修改 :## Themes: https://hexo.io/themes/
theme: yilia
- hexo g 要先生成才上传不然文章上不去,hexo d