hexo博客调优

解决某些机场屏蔽22端口的问题

修改.ssh/config如下:

1
2
3
4
Host github.com
Hostname ssh.github.com
Port 443
User git

解决hexo默认渲染引擎导致单引号显示不正确的问题

1
2
3
sudo apt install pandoc
npm uninstall hexo-renderer-marked --save
npm install hexo-renderer-pandoc --save

编辑 主题配置文件,修改配置如下:

1
2
3
4
5
6
7
8
9
10
# Math Equations Render Support
math:
enable: true

# Default (true) will load mathjax / katex script on demand.
# That is it only render those page which has `mathjax: true` in Front Matter.
# If you set it to false, it will load mathjax / katex srcipt EVERY PAGE.
per_page: false

engine: mathjax

引号测试

1
'""'

参考链接

  • https://github.com/hexojs/hexo-renderer-pandoc
  • https://battlele.com/blog-2/
  • https://www.wylu.me/posts/78c745f0/

hexo博客调优
https://blog.njcit.me/2023/06/09/杂项/hexo博客调优/
作者
ccadmin
发布于
2023年6月9日
许可协议