Breaking Change
- 只支持 hexo 4.2.0 以上版本
- butterfly.yml 採用deepMerge, 與_config文件進行合併而不是替換
Feature
-
適配 hexo 5.0.0 的 prismjs, 代碼主題和各項功能
-
適配hexo 5.1.0 prismjs caption
-
可隱藏 Mobile sidebar 子菜單
+# Hide the child menu items in mobile sidebar +hide_sidebar_menu_child: false
-
當寬度小於1024時,點擊toc滾動,增加滾動效果
-
可配置font-size/更改配置中 code-font 為 code-font-family
font: + global-font-size: + code-font-size: font-family: - code-font: + code-font-family:
-
部分css由'px'改為'em',適應font-size值改變而改變
-
pjax增加exclude配置
-pjax: false +pjax: + enable: false + exclude:
-
新增 cnzz_analytics
# Analysis # -------------------------------------- # Baidu Analytics # https://tongji.baidu.com/web/welcome/login baidu_analytics: # Google Analytics # https://analytics.google.com/analytics/web/ google_analytics: # Tencent Analytics # https://mta.qq.com/ tencent_analytics: #500727214 +# CNZZ Analytics +# https://www.umeng.com/ +cnzz_analytics:
-
騰訊分析改為騰訊移動分析,並適配pjax
-
aside增加position sticky
-
更改addtoany item的寫法
addtoany: enable: false - item: - - facebook - - twitter - - wechat - - sina_weibo - - facebook_messenger - - email - - copy_link + item: facebook,twitter,wechat,sina_weibo,facebook_messenger,email,copy_link
-
增加最後更新時間顯示/增加post count 配置
aside: - card_webinfo: true + card_webinfo: + enable: true + post_count: true + last_push_date: true
-
增加 aside 最新評論部件
+newest_comments: + enable: false + limit: 6 + avatar: true + leancloud: + enable: false ++ appId: # leancloud application app id + appKey: # leancloud application app key + serverURL: # This configuration is suitable for domestic custom domain name users, overseas version will be automatically detected (no need to manually fill in) + default_avatar: mp # mp/identicon/monsterid/wavatar/retro/robohash/blank + github_issues: + enable: false + repo: + disqus: + enable: false + forum: + api_key:
Improvements
- archives和card-post 改為flex佈局
- 點擊滾動,如果滾動是向上時,將會偏移60px, 避免導航欄遮擋 close #317
- 改cookies為localStorage存儲
- 設置中的theme_color可單獨配置幾個,而不需要全部開啟 close #314
- 調整webinfo 寬度小時的顯示
- aside 內容邊距調整
- Pjax下,刷新頁面時,會滾動到上次瀏覽的位置
- 修復mathjax溢出屏幕的Bugs # 321
- 部分css調整和html優化
- 刪除pwa中的theme-color配置,默認生成meta theme-color #340
- 補全card-categories和card-archives的 '查看更多‘鏈接 #337
- 代碼名字全大寫
Fix
- 修復canvas_nest 配置沒有生效的Bugs
- 修復rightsize-bottom配置無效的bug
- 修復夜間模式下代碼塊有背景的bugs(沒開啟渲染的情況下)
- 修復 prismjs 在 tags-toggle 外掛標簽裏,代碼塊顯示一行的bugs
- 修復當關閉代碼渲染後,標簽外掛裏的代碼塊會被壓縮到一行的bugs
- 修復在modern樣式下,note 標簽外掛沒有使用tags名時,沒有背景色和夜間模式文字顯示不清楚的bugs
- 修復主頁文章cover在深色模式下,邊角有小白邊的bugs #278
- 修復note標簽外掛下,代碼塊顯示背景色的bugs close #339
- 修復toc 滾動百分比不準的Bugs
- 修復comments沒設置時,報Unexpected token ')'的bugs #344
- 修復網站子目錄下,相關文章cover無法顯示的bugs #334
Remove
- 去除字體放大、縮小按鈕
- 移除 代碼default主題