执行npm install hexo-cli -g
后无反应
解决方法是要把npm的仓库源换成国内的。
命令如下:
1 | npm config set registry https://registry.npm.taobao.org |
在Hexo中使用KaTeX的方法
目前看下来最好的方法是使用hexo-katex以及hexo-renderer-pandoc
操作如下:
1 | npm uninstall hexo-renderer-marked --save |
并在_config.yml
中加入
1 | pandoc: |
用hexo-abbrlink为博文绑定Disqus(Hexo主题 Journal)
先安装hexo-abbrlink.
然后将\themes\journal\layout\_include\comment_includes.ejs
进行修改
1 | var disqus_config = function () { |