hexo博客同步

此博客停止更新迁移至 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 以支持数学公式中的 \ -

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值