记录下来,防止忘记!
添加NPM国内淘宝镜像
1 | npm config set registry https://registry.npmmirror.com |
安装Hexo命令
1 | npm install -g hexo-cli |
生成SSH到GitHub
1 | git config --global user.name "yourname" ## 配置用户名和邮箱 |
写文章、发布文章
1 | hexo new post "article title" ## 新建文章 |
备份themes模版
1 | sh update.sh |