blinkfox / hexo-theme-matery

A beautiful hexo blog theme with material design and responsive design.一个基于材料设计和响应式设计而成的全面、美观的Hexo主题。国内访问:http://blinkfox.com
https://blinkfox.github.io/
Apache License 2.0
5.24k stars 1.25k forks source link

升级适配Hexo 7.0 #908

Open appotry opened 8 months ago

appotry commented 8 months ago

改动很少 ,两处修改 https://github.com/hexojs/hexo/releases/tag/v7.0.0

Hexo 7 不再使用gist, youtube, jsfiddle, and vimeo 这几个tag ,如果要使用,需要单独安装插件

Some of the built-in tags have been dropped (gist, youtube, jsfiddle, and vimeo). If you use those tags in your existing blog posts, you can install hexo-tag-embed to continue using them with Hexo v7.0.0.

$ npm i hexo-tag-embed

代码高亮配置方式需要修改

Syntax highlighting is refactored and controlled by the following settings. See Syntax Highlighting for more details.

syntax_highlighter: highlight.js # highlight.js | prismjs | <empty>

已经用上了 hexo 7 版本,升级后暂时没发现什么bug

appotry commented 8 months ago

发现 7.1 存在bug tag 换行解析错误 hexo 7.0正常

npm i hexo@7.0.0 --save