博客重搭建记录

换了电脑等了几个月,makedown的语法也忘得差不多了,先用代码块包裹起来.以后再填坑

因为只复制了原blog里的source和_config.yml目前live2d暂时移除了

阅读全文
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
安装nods.js 默认会集成有npm
安装git (选择默认配置安装就可以了)

在git bash中输入(推荐使用,也可以用win的cmd执行)
npm config set registry https://registry.npm.taobao.org 更改远程仓库地址

npm install -g npm 获取到npm最新版本

#liunx原则,什么提示都没有出现就是成功了

npm install -g hexo-cli 安装hexo包

hexo init 初始化
第一次发布前执行
npm install --save hexo-deployer-git
hexo g -d 发布到GitHub上

git init 创建本地git仓库
git config –global user.name fengihc --(你的Github用户名 )
git config –global user.email hihchao@163.com --(你的Github邮箱地址)
ssh-keygen -t rsa -C 邮箱 ====本地生成SSH key 否则push报错
cat ~/.ssh/id_rsa.pub ====ssh-rsa AAAAB后面就是SSH key

同hexo类似的基于Vue搭建的vuepress
-------------本文结束感谢您的阅读-------------