因为怕忘了自己怎么配置的,以及记录一下一些坑,所以写一篇博客。
依赖:node.js
,pandoc
。
安装命令:
npm install hexo-cli -g
hexo init "博客"
包的配置命令:
npm uninstall hexo-math --save
npm uninstall hexo-renderer-marked --save
npm install hexo-renderer-pandoc --save
npm install hexo-filter-mathjax --save
npm install hexo-deployer-git --save
npm install hexo-browsersync --save
其中前四条解决数学公式渲染问题,第五个用于一键部署,第六个用于自动刷新。
主题用的 minima,自己改了一点,传一个备份。
直接覆盖 _config.yml
配置文件,minima
文件夹放 themes
里就好了。
技术杂谈 — Feb 8, 2025