文档存放
我的方法是将博客用到的 source, _config.yml, themes\next, 等文档存在 U 盘的 Note 文件夹中,然后对每台主机的用户文件夹下建立 Blog 文件夹进行博客发布。
新主机建立
1 | cd ~/Blog |
之后将source, _config.yml, themes\next 这三个文件复制进去。
mathjax 支持
新搭建的博客常出现 mathjax 错误,我们执行以下操作:
1 | npm uninstall hexo-renderer-marked --save |
之后将 node_modules\kramed\lib\rules\inline.js 复制进去。
发布
1 | hexo clean |