此博客停止更新迁移至 SnailDove’s Blog,查看本文点击此处
旧电脑上博客根目录执行
git init
git check -b source
git check source
git add *
git rm --cached ./node_modules/ ./source/_drafts ._config.yml ./themes/next/_config.yml
vim .gitignore #添加:./node_modules/ ./source/_drafts ._config.yml ./themes/next/_config.yml
##(博客根目录配置文件与主题配置文件不同步到github,防止泄露隐私,百度云盘隐藏空间备份)
git commit -m "初次同步博客"
git push origin source:source
新电脑上博客的新目录下执行
在github的 .github.io.git(代表你的github用户名) 仓库上设置 source 分支为默认分支
git 配置完成以后
git clone https://github.com/~/~.github.io.git
cd ~.github.io.git
npm install hexo
npm install
npm install hexo-deployer-git
latex公式问题
按网上的教程继续修改 ./node_modules/marked/marked.js 以支持数学公式中的 \ -