4.10
版本发布时间: 2023-10-09 19:57:13
jerryc127/hexo-theme-butterfly最新发布版本:5.2.2(2024-11-05 19:13:47)
破壞性內容
-
更改 rightside-bottom 為 rightside_bottom
- rightside-bottom: + rightside_bottom:
-
重構 gallery 標籤外掛
-
寫法變更
-
默認為滾動到顯示區域才加載圖片
-
更改依賴, 由 nk-o/flickr-justified-gallery 改為 egjs-infinitegrid
CDN: option: - # flickr_justified_gallery_js: - # flickr_justified_gallery_css: + # egjs_infinitegrid:
-
-
更改
ClickShowText
為clickShowText
-ClickShowText: +clickShowText: enable: false text: - I - LOVEeeeeeeeeeeeee - YOU fontSize: 15px random: true mobile: false CDN: option: - ClickShowText: + clickShowText:
內容
-
置頂圖標改為在標題左側
-
可配置打賞按鈕的文字
reward: enable: false + text: QR_code:
-
側邊欄增加系列文章顯示
aside: + card_post_series: + enable: true + orderBy: 'date' # Order by title or date + order: -1 # Sort of order. 1, asc for ascending; -1, desc for descending
-
增加 series 系列文章標籤外掛
+series: + enable: true + orderBy: 'title' # Order by title or date + order: 1 # Sort of order. 1, asc for ascending; -1, desc for descending + number: true
-
移除 addthis 分享
-addThis: - enable: false - pubid:
-
文章版權增加圖標顯示
-
getScript 增加 attribute 配置
-
文章文字左右對齊
+# Stretches the lines so that each line has equal width(文字向兩側對齊,對最後一行無效) +text_align_justify: true
-
preconnect 根據 CDN 配置引入
-
移除 anchor 的 button, 直接點擊標題跳轉
anchor: - button: - enable: false - always_show: false - icon: # the unicode value of Font Awesome icon, such as '\3423' auto_update: false # when you scroll in post, the URL will update according to header id. + # Click the headline to scroll and update the anchor + click_to_scroll: false
-
更改 headline 的 hover 效果
修復
- 修復網站為子目錄時,pjax 跳轉 404 錯誤
- 修復夜間模式下,小屏幕的 toc 滾動條顏色不明顯的 bug
- 修復設置字體超過 17px 時,toc 裏面的邊框異常的 bug
- 修復 float 浮動佈局導致評論寬度異常的 bug
- 修復當設置搜索文件為xml時,搜索 < 和 > 沒有結果的 bug
- 修復主頁滾動, 頂部圖特效有延遲的 bug
- 修復圖片附屬文字在 note 標籤外掛裏的位置與圖片重疊的 bug
優化
- 首頁社交圖標左右邊距調整
- 代碼優化
- tabs 標籤外掛的回到頂部箭頭位置調整
- 更新 plugin.yml
- 重構 main.js 代碼
- 優化 pjax 下的性能
- 優化手機端 toc 打開和關閉特效
- 文章進入特效改為 transform, 優化 stylus
- 目錄側邊欄出現滾動條時,元素不會被擠壓
- 處理 waline 的 url 後面多 / 導致跨域的問題
- 優化語言文件部分用詞
- disqus 和 disqusjs 的評論數獲取不到時,顯示為 0
- disqusjs 的評論數改為 api 獲取
- tabs content 裏最後一個元素 margin-bottom 改為 0
- 移除 noscript
Breaking Changes
-
Changed
rightside-bottom
torightside_bottom
.- rightside-bottom: + rightside_bottom:
-
Refactored the
gallery
tag plugin.-
Changed the implementation.
-
Images are now loaded only when they are scrolled into view.
-
Changed the dependency from
nk-o/flickr-justified-gallery
toegjs-infinitegrid
.CDN: option: - # flickr_justified_gallery_js: - # flickr_justified_gallery_css: + # egjs_infinitegrid:
-
-
Changed
ClickShowText
toclickShowText
-ClickShowText: +clickShowText: enable: false text: - I - LOVEeeeeeeeeeeeee - YOU fontSize: 15px random: true mobile: false CDN: option: - ClickShowText: + clickShowText:
Features
-
Changed the position of the sticky icon to the left of the title.
-
Added the ability to customize the text of the reward button.
reward: enable: false + text: QR_code:
-
Added support for displaying series posts in the right panel.
aside: + card_post_series: + enable: true + orderBy: 'date' # Order by title or date + order: -1 # Sort of order. 1, asc for ascending; -1, desc for descending
-
Added support for displaying series posts using the series tag plugin.
+series: + enable: true + orderBy: 'title' # Order by title or date + order: 1 # Sort of order. 1, asc for ascending; -1, desc for descending + number: true
-
Removed the addthis sharing plugin.
-addThis: - enable: false - pubid:
-
Added an icon before the text in the copyright section.
-
Added the ability to configure attributes for getScript.
-
Added support for left and right alignment of article text.
+# Stretches the lines so that each line has equal width(文字向兩側對齊,對最後一行無效) +text_align_justify: true
-
Added support for preconnecting to the CDN based on configuration.
-
Removed the button for anchors and made the title clickable to jump to the anchor.
anchor: - button: - enable: false - always_show: false - icon: # the unicode value of Font Awesome icon, such as '\3423' auto_update: false # when you scroll in post, the URL will update according to header id. + # Click the headline to scroll and update the anchor + click_to_scroll: false
-
Changed the hover effect of headlines.
Fix
- Fixed a bug where pjax would return a 404 error when the website was in a subdirectory.
- Fixed a bug where the scrollbar color was not clear on small screens in dark mode.
- Fixed a bug where the border in the TOC was abnormal when the font size was greater than 17px.
- Fixed a bug where the width of comments was abnormal in float layout.
- Fixed a bug where searching for < and > did not return results when the search file was XML.
- Fixed a bug where the top image effect on the homepage was delayed during scrolling.
- Fixed a bug where the caption of an image overlapped with the image in the note tag plugin.
Improvement
- Adjusted the left and right margins of social icons on the homepage.
- Optimized the code.
- Adjusted the position of the "back to top" arrow in the tabs tag plugin.
- Updated plugin.yml.
- efactored the code in main.js.
- Optimized performance under pjax.
- Optimized the opening and closing effects of the TOC on mobile devices.
- Changed the article entry effect to use transform and optimized the stylus.
- Prevented elements from being squeezed when the sidebar has a scrollbar.
- Fixed a cross-domain issue caused by extra slashes in the URL for Waline.
- Improved the wording in some language files.
- Displayed "0" when the comment count could not be obtained for Disqus and Disqusjs.
- Changed the method of obtaining the comment count for Disqusjs to use the API.
- Removed the bottom margin of the last element in the tabs content.
- Removed the noscript tag.