修改hexo-material主题的代码高亮风格

其实比较简单,做几个填空题而已。

根据主题官网:https://material.viosey.com/expert/ 的说明,
从 1.3.0 版本开始,您可以使用 hexo-prism-plugin 进行代码染色,具体文档请参阅 Hexo-Prism-Plugin 插件文档

转到插件文档:https://github.com/ele828/hexo-prism-plugin

运行npm安装,根据文档,在博客的_config.yml中加上:

1
2
3
4
prism_plugin:
mode: 'preprocess' # realtime/preprocess
theme: 'default'
line_number: false # default false

并且关闭自带的highlight即可。

另外所有主题的预览在这里:
https://github.com/PrismJS/prism-themes#available-themes

修改hexo-material主题的代码高亮风格

http://blog.mothership.top/posts/fdd1c61e.html

作者

Mother Ship

发布于

2017-08-03

更新于

2023-02-13

许可协议

评论