bennyxguo / hexo-theme-obsidian

🎨 A dark Hexo theme, it's responsive, simple but elegant.
https://obsidian.tridiamond.tech/
MIT License
781 stars 108 forks source link

代码过长无法展示 #64

Closed Zrzzzz closed 4 years ago

Zrzzzz commented 4 years ago

如题啦,过长的时候会到屏幕右边,而且在首页的话,代码和图片的显示不太好,建议代码还是加个框比较好看

yansheng836 commented 4 years ago

好像不会啊:

image

我猜你是没有看配置说明,see https://github.com/TriDiamond/hexo-theme-obsidian#theme-settings,你需要关闭hexo默认的代码高亮:

#! ---------------------------------------------------------------
#! Since version `v1.3.5` code block highlight has changed from `highlight.js` to
#! `codemirror`, but the Hexo default highlight still need to be disabled to take affect.
#! !! So Please make sure you disabled Hexo's default highlight setting !!
#! ---------------------------------------------------------------
#! Rebuild files after you changed the config:
#! `hexo clean && hexo g`
#! ---------------------------------------------------------------
#! highlight:
#!  enable: false
#!  line_number: true
#!  auto_detect: true
#!  tab_replace:
#! ---------------------------------------------------------------
Zrzzzz commented 4 years ago

2020年2月16日 下午12:40,荷塘月色 notifications@github.com 写道:

, 是的我发现了,原来是auto—detect的原因,我将其设置为了false,这是非常好看的主题,请继续加油!

bennyxguo commented 4 years ago

谢谢支持