Hexo

官网

全局设置

  • npm install hexo -g
  • npm install hexo-deployer-git --save

启用abbrlink 参考

  • npm install hexo-abbrlink --save
  • permalink: posts/:abbrlink.html

装了福昕阅读器或什么软件会使4000端口被占用

  • hexo s -p 5000

或者直接https://jingyan.baidu.com/article/3c48dd34491d47e10be358b8.html

如果mathjax公式出问题了,或许可以用一下方法解决

在./node_modules/marked/lib/marked.js中 摘自

  • escape: /^\\([\\`*{}\[\]()# +\-.!_>])/,
  • em: /^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,
  • 改为
  • escape: /^\\([`*\[\]()# +\-.!_>])/,
  • em:/^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,

主题设置

maupassant

Next

官方

在layout/_macro/post.swig 修改,去掉阅读全文

yilia

英文字体

main****.css改

  • xxx la;font-family:lucida xxx