Hexo配置指南
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick Start
Create a new post
1 | $ hexo new "My New Post" |
More info: Writing
Run server
1 | $ hexo server |
More info: Server
Generate static files
1 | $ hexo generate |
More info: Generating
Deploy to remote sites
1 | $ hexo deploy |
More info: Deployment
公式配置教程
1.首先卸载hexo-math和hexo-renderer-marked。然而hexo应该是没有自带hexo-math的,所以只需要卸载第二个就行。以防万一还是可以直接执行:
1 | npm un hexo-math |
- 安装hexo-renderer-pandoc渲染器
1 | npm i hexo-renderer-pandoc |
- 然后是配置主题配置下的mathjax设置。我用的是butterfly,那么对应路径是: _config.yml
1 | # MathJax |
注意这步是要在主题配置文件中进行配置!
- 最后去Pandoc官网下载最新版本pandoc安装即可使用了。
自动更新
通过MD5检测实现自动更新。
1 | import os |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.