miccall / hexo-theme-Mic_Theme

hexo theme
GNU General Public License v3.0
452 stars 100 forks source link

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

Open Gerogina6 opened 6 years ago

Gerogina6 commented 6 years ago

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/

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

miccall commented 6 years ago

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

miccall commented 6 years ago

@Georginaaaa

Gerogina6 commented 6 years ago

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