hexo-theme-Mic_Theme icon indicating copy to clipboard operation
hexo-theme-Mic_Theme copied to clipboard

我这样设置了_config.yml但是代码还是没有高亮

Open Gerogina6 opened this issue 7 years ago • 3 comments

highlight: enable: false line_number: true auto_detect: false tab_replace: prism_plugin: mode: 'realtime' # realtime/preprocess theme: 'duotone-light' line_number: false custom_css: './themes/hexo-theme-Mic_Theme/source/css/mic_main.css' 按照教程修改 在我的blog里有显示代码块但是没有高亮 http://georginajhong.com/2017/12/13/Wtiting-before-OO/

真的挺奇怪的 调试的时候又是另一个样式

Gerogina6 avatar Jun 26 '18 16:06 Gerogina6

theme: 'duotone-light' 好像没有这个主题吧 , 首先先要在git下安装代码高亮的插件 然后在主站这样设置 image 另外,在主题的配置文件中: image

miccall avatar Jun 27 '18 02:06 miccall

@Georginaaaa

miccall avatar Jun 27 '18 02:06 miccall

Refused to apply style from 'http://localhost:4000/css/prism_atom-dark.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. 主要是我加入不成功啊。。等我研究一下 install插件的时候说rollback了 what happen。。 @miccall

Gerogina6 avatar Jun 28 '18 16:06 Gerogina6