Releases: jerryc127/hexo-theme-butterfly
3.7.6
3.7.5
Breaking Change
-
site_verification 優化,需自行配置
-# Google Webmaster tools verification setting -# See: https://www.google.com/webmasters/ -google_site_verification: -# Bing Webmaster tools verification setting -# See: https://www.bing.com/webmaster/ -bing_site_verification: -# Baidu Webmaster tools verification setting -# See: https://ziyuan.baidu.com/site/ -baidu_site_verification: -# 360 Webmaster tools verification setting -# see http://zhanzhang.so.com/ -qihu_site_verification: -# Yandex Webmaster tools verification setting -# see https://webmaster.yandex.com/ -yandex_site_verification: +site_verification:
-
lazyload 優化 (增加高斯模糊過度特效,增加配置 lazyload 範圍,佔位圖應用到全站)
lazyload: enable: false - post: /img/loading.gif + field: site # site/post + placeholder: /img/loading.gif + blur: false
Feature
- 增加 tags 標簽外掛 - label
Fix
- 修復開啟anchor後,文章頁跳轉回主頁,主頁網址的hash添加上文章頁最後一個標題的 bug
- 修復開啟anchor後,瀏覽器上一頁/下一頁 跳轉會 404 的bug (文章頁的url hash 在pjax下變成 undefined)
- 修復 lazyload 報 undefined 的 bug close #532
Improvement
- 優化 pjax 下 404 頁面
- 優化 button tags 標簽外掛
3.7.1
3.7.0
Breaking Change
-
更改子目錄的寫法,與父目錄一致
-
移除 artitalk (如需要,請安裝 hexo-butterfly-artitalk)
-# Artitalk -# see https://artitalk.js.org/ -artitalk: - appId: - appKey: - option: CDN: - artitalk: https://cdn.jsdelivr.net/npm/artitalk
-
katex_copytex 的js 和 css cdn 更換
-katex_copytex: https://cdn.jsdelivr.net/npm/katex-copytex@latest/dist/katex-copytex.min.js -katex_copytex_css: https://cdn.jsdelivr.net/npm/katex-copytex@latest/dist/katex-copytex.min.css +katex_copytex: https://cdn.jsdelivr.net/npm/katex@latest/dist/contrib/copy-tex.min.js +katex_copytex_css: https://cdn.jsdelivr.net/npm/katex@latest/dist/contrib/copy-tex.css
Feature
-
新增設置代碼高度限制,顯示展開按鈕
+highlight_height_limit: false # unit: px
-
prismjs 也可以配置 code_word_wrap
-
增加 kbd 樣式 #507
-
添加waline,valine 和twikoo 提供的文章閲讀數配置 #502
valine: + visitor: false waline: + visitor: false twikoo: + visitor: false
-
增加 HexoPlusPlus_Talk(需要安裝 hexo-butterfly-hpptalk)
-
增加 tags 標簽外掛 inlineImg
-
gitalk 增加 option 配置
gitalk: createIssueManually: false # Gitalk will create a corresponding github issue for your every single page automatically + option:
Fix
- 修復prismjs 在 ios safari 下自動換行的bug
- 修復默認代碼大小不會隨着字體放大/放小而改變的bug
- 修復prismjs 無法識別的語言 顯示 null 而不是顯示 code 的 bug
- 在完全沒有配置的情況下,運行時控制台報null 的問題
Improvement
3.6.2
3.6.1
3.6.0
Feature
-
增加首頁評論數顯示
comments: ... count: false # Display comment count in post's top_img + card_post_count: false # Display comment count in Home Page
-
最新評論更新
<a>
標簽將會顯示[鏈接]
<img>
標簽將會顯示[圖片]
<pre><code>
標簽將顯示[代碼]
- github-issues 獲取到的 url 改為對應文章地址,而不是issues地址
- 時間 time 增加 datetime屬性
- waline 獲取到頭像會先匹配 waline數據庫是否有qq頭像屬性
- 部分評論顯示的時間改為更新時間
-
aside ‘查看更多’按鈕 改為 圖標顯示在右上角
-
可配置最新評論的緩存時間
newest_comments: enable: false sort_order: # Don't modify the setting unless you know how it works limit: 6 + storage: 10 # unit: mins, save data to localStorage
-
增加 post_pagination 配置(可關閉/配置分頁展示邏輯)
+# post_pagination (分頁) +# value: 1 || 2 || false +# 1: The 'next post' will link to old post +# 2: The 'next post' will link to new post +# false: disable pagination +post_pagination: 1
-
文章版權右上角改為 版權icon
-
增加配置 disable_top_img,禁用所有的top_img
+# Disable all banner image +disable_top_img: false
-
增加 文章編輯
+# Post edit +# Easily browse and edit blog source code online. +post_edit: + enable: false + # url: https://github.com/user-name/repo-name/edit/branch-name/subdirectory-name/ + # For example: https://github.com/jerryc127/butterfly.js.org/edit/main/source/ + url:
Fix
- 修復 文章頁面上滑子菜單圖標文字無法顯示的 bug #481
- 修復在 chrome上,進入頁面時,頁面元素會出現模糊到清晰 的 bug #479
- 修復夜間模式下,閲讀模式代碼塊背景顔色的顯示bug
- 修復打賞按鈕字數過多導致Hover異常的bug #473
- 修復評論裏 行內元素(表情/圖片)變成塊級元素(換行)的bug
- 修復點擊toc後,滾動完toc的highlight在點擊的上一個元素
- 修復子目錄下,打賞圖片跳轉鏈接會錯誤的bug
- 修復文字點擊關閉random無效的bug
- 修復手持設備橫向翻轉時,menu 沒有進行判斷,而導致樣式錯亂的bug
- 修復pjax下不會跳轉404頁面的bug
- 修復twikoo 評論數獲取會因為地域問題報錯的bug
- 修復 background-image 遇到鏈接有括號時會無法顯示的bug
Improvement
- meta description 限制在150字以內 #480
- pug優化和結構調整
- pug 判斷優化
- 友情鏈接界面增加title顯示(top_img設為false時)
- 升級facebook comment sdk版本
- 優化toc顯示,當向上滾動時,導航欄不會遮擋 toc #472
- pangu 改為全站渲染
- 最新評論js優化
- 調整 Readmode 標題邊距
- 卡片 hover box-shadow 微調
- 404頁面卡片增加hover
- 刪除部分多餘的代碼
Remove
-
移除百度推送(百度已棄用)和百度轉碼
-# Disable Baidu transformation on mobile devices (禁止百度轉碼) -disable_baidu_transformation: true -# Baidu Push (百度推送) -baidu_push: false
-
移除 fragment_cache 配置(默認開啟)
-# Caches the contents in a fragment, speed up the generation (開啟hexo自帶的緩存,加快生成速度) -fragment_cache: true
3.5.1
3.5.0
Feature
-
aside 個人資料widget可關閉button
aside: ... card_author: enable: true description: button: + enable: true icon: fab fa-github text: 主題 GitHub link: https://github.com/jerryc127/hexo-theme-butterfly
-
新增 Cloudflare Analytics
+# Cloudflare Analytics +# https://www.cloudflare.com/zh-tw/web-analytics/ +cloudflare_analytics:
-
新增 Microsoft Clarity
+# Microsoft Clarity +# https://clarity.microsoft.com/ +microsoft_clarity:
-
readmode 優化
-
aside 增加自定義 widget
-
aside widget 增加排序(只對page頁和sticky內的有效)
aside: ... card_recent_post: + sort_order: # Don't modify the setting unless you know how it works card_categories: + sort_order: # Don't modify the setting unless you know how it works card_tags: + sort_order: # Don't modify the setting unless you know how it works card_archives: + sort_order: # Don't modify the setting unless you know how it works card_webinfo: + sort_order: # Don't modify the setting unless you know how it works newest_comments: enable: true + sort_order: # Don't modify the setting unless you know how it works
-
twikoo 增加 option 配置
# Twikoo # https://github.com/imaegoo/twikoo -twikoo: +twikoo: + envId: + option:
-
增加waline評論
+# waline - A simple comment system with backend support fork from Valine +# https://waline.js.org/ +waline: + serverURL: # Waline server address url + avatar: monsterid # gravatar style https://zh-tw.gravatar.com/site/implement/images/#default-image + emojiCDN: # emoji CDN + bg: /image/comment_bg.png # waline background + option:
-
增加waline評論數顯示
-
增加waline最新評論模塊
newest_comments: enable: true ... + waline: false
Improvement
-
最新評論url 增加描點
-
html結構優化
-
修改newest_comments的leancloud為valine,並刪除其配置,改為讀取valine配置
# Aside widget - Newest Comments newest_comments: ... - 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/identicon/monsterid/wavatar/retro/robohash/blank + valine: false