You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# 代码高亮
# Code highlight
highlight:
enable: true
# 代码块是否显示行号
# If true, the code block display line numbers
line_number: true
# 实现高亮的库,对应下面的设置
# Highlight library
# Options: highlightjs | prismjs
lib: "highlightjs"
highlightjs:
# 在链接中挑选 style 填入
# Select a style in the link
# See: https://highlightjs.org/static/demo/
style: "atom-one-light"
style_dark: "hybrid"
prismjs:
# 在下方链接页面右侧的圆形按钮挑选 style 填入,也可以直接填入 css 链接
# Select the style button on the right side of the link page, you can also set the CSS link
# See: https://prismjs.com/
style: "default"
style_dark: "tomorrow night"
# 设为 true 高亮将本地静态生成(但只支持部分 prismjs 插件),设为 false 高亮将在浏览器通过 js 生成
# If true, it will be generated locally (but some prismjs plugins are not supported). If false, it will be generated via JS in the browser
preprocess: false
进行hexo d,再进行hexo g与hexo s
对比两个网页代码块的高光可以发现localhost已经修改而远程部署的网页没有更改
再次切换代码块高光并重复以上步骤可以发现效果仍如上
暂时解决方法
无
The text was updated successfully, but these errors were encountered:
请确认
hexo clean && hexo s
,而且清除浏览器缓存,任可复现Bug描述
在theme的config文件中选择highlightjs并改变代码高光后,上传至github,本地localhost改变代码块高光,但github上部署的blog并未改变代码块高光
复现步骤
新建全新的Hexo安装fluid主题
对任意一篇文章做出修改
在theme的config文件夹中修改代码块高光的style
例如
进行hexo d,再进行hexo g与hexo s
对比两个网页代码块的高光可以发现localhost已经修改而远程部署的网页没有更改
再次切换代码块高光并重复以上步骤可以发现效果仍如上
暂时解决方法
无
The text was updated successfully, but these errors were encountered: