mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-16 01:01:38 +00:00
✨代码高亮
This commit is contained in:
@ -110,7 +110,7 @@ deploy:
|
||||
message: ❤
|
||||
|
||||
# minifier
|
||||
all_minifier: true
|
||||
all_minifier: false
|
||||
|
||||
html_minifier:
|
||||
enable: true
|
||||
|
@ -19,11 +19,17 @@ title_join_string: ' - ' # 浏览器标签页中的标题分隔符,效果:
|
||||
|
||||
force_https: true # 强制所有链接升级为 HTTPS(适用于图片等资源出现 HTTP 混入报错)
|
||||
|
||||
highlight: # 代码高亮
|
||||
enable: true
|
||||
theme: 'Atom One Dark' # 高亮样式见:https://highlightjs.org/static/demo/ 在页面挑选 style 填入
|
||||
bg_color: false # 是否根据 style 改变代码背景色,如果 style 是白色背景最好关闭此项
|
||||
code: # 代码块相关的配置
|
||||
copy_btn: true # 是否开启复制代码的按钮
|
||||
highlight: # 代码高亮
|
||||
enable: true
|
||||
lib: 'highlightjs' # 实现高亮的库,可选:highlightjs | prismjs,对应下面的配置项
|
||||
highlightjs:
|
||||
style: 'Github Gist' # 高亮样式见:https://highlightjs.org/static/demo/ 在页面挑选 style 填入
|
||||
bg_color: false # 是否根据 style 改变代码背景色,**如果 style 是深色背景别忘了开启此项**
|
||||
prismjs:
|
||||
style: 'default' # 高亮样式见:https://prismjs.com/ 在页面右侧的圆形按钮挑选 style 填入,也可以直接填入 css 链接
|
||||
preprocess: true # 设为 true 高亮将本地静态生成(并只支持部分 prismjs 插件),设为 false 高亮将在浏览器通过 js 生成
|
||||
|
||||
fun_features: # 一些好玩的功能
|
||||
typing: # 为 subtitle 添加打字机效果
|
||||
|
Reference in New Issue
Block a user