mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-10-04 06:22:00 +08:00
feat: 新增設置代碼行數限制,顯示展開按鈕
improvement: prismjs 可以配置 code_word_wrap improvement: 搜索 hover 效果與其它目錄一致 improvement: css 優化 fix: 修復prismjs 無法識別的語言 顯示 null 而不是顯示 code 的 bug fix: 修復默認代碼大小不會隨着字體放大/放小而改變的bug fix: 修復prismjs 在ios safari 下自動換行的bug
This commit is contained in:
1 parent
2f3094cc0a
commit
7bc46c47ed
14 files changed
+225
-182
No files matched your search
@@ -27,6 +27,7 @@ highlight_theme: light # darker / pale night / light / ocean / mac / mac light
|
|||||||
highlight_copy: true # copy button
|
highlight_copy: true # copy button
|
||||||
highlight_lang: true # show the code language
|
highlight_lang: true # show the code language
|
||||||
highlight_shrink: false # true: shrink the code blocks / false: expand the code blocks | none: expand code blocks and hide the button
|
highlight_shrink: false # true: shrink the code blocks / false: expand the code blocks | none: expand code blocks and hide the button
|
||||||
|
highlight_height_limit: false # unit: px
|
||||||
code_word_wrap: false
|
code_word_wrap: false
|
||||||
|
|
||||||
# copy settings
|
# copy settings
|
||||||
|
|||||||
@@ -78,7 +78,8 @@
|
|||||||
highlight = JSON.stringify({
|
highlight = JSON.stringify({
|
||||||
plugin: config.highlight.enable ? 'highlighjs' : 'prismjs',
|
plugin: config.highlight.enable ? 'highlighjs' : 'prismjs',
|
||||||
highlightCopy: theme.highlight_copy,
|
highlightCopy: theme.highlight_copy,
|
||||||
highlightLang: theme.highlight_lang
|
highlightLang: theme.highlight_lang,
|
||||||
|
highlightHeightLimit: theme.highlight_height_limit
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ if theme.menu
|
|||||||
ul.menus_item_child
|
ul.menus_item_child
|
||||||
each val,lab in value
|
each val,lab in value
|
||||||
li
|
li
|
||||||
a.site-page(href=url_for(trim(val.split('||')[0])))
|
a.site-page.child(href=url_for(trim(val.split('||')[0])))
|
||||||
if val.split('||')[1]
|
if val.split('||')[1]
|
||||||
i.fa-fw(class=trim(val.split('||')[1]))
|
i.fa-fw(class=trim(val.split('||')[1]))
|
||||||
span=' '+ lab
|
span=' '+ lab
|
||||||
Loaded 3 of 14 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user