Skip to content

Releases: jerryc127/hexo-theme-butterfly

5.2.2

05 Nov 11:13
c8609e8
Compare
Choose a tag to compare

feat: 過期通知優化,可單獨文章關閉
fix: 修復説説評論 css 受主題影響的 bug


feat: Expiration notification optimization, can be closed in individual articles
fix: Fix the bug that the css of Talking Comments is affected by the theme

5.2.1

02 Nov 11:48
Compare
Choose a tag to compare

新功能

  1. 說說支持評論
  2. 說說支持限制條數(時間或數字)

更新

  1. 更新相關依賴版本

修復

  1. 修復 disqus 和 disqusjs 不能共存的問題,保留一個
  2. 代碼優化
  3. 修復 remark42 最新評論報錯的 bug
  4. 修復說說的時區問題

New Features

  1. Added support for comments in "Shuoshuo"
  2. Added support for limiting the number of "Shuoshuo" entries (by time or number)

Updates

  1. Updated related dependency versions

Fixes

  1. Fixed the issue where disqus and disqusjs cannot coexist, keeping only one
  2. Code optimization
  3. Fixed the bug with the latest comments in remark42
  4. Fixed the timezone issue in "Shuoshuo"

5.2.0

02 Nov 11:40
Compare
Choose a tag to compare

新功能

  1. 說說支持評論
  2. 說說支持限制條數(時間或數字)

更新

  1. 更新相關依賴版本

修復

  1. 修復 disqus 和 disqusjs 不能共存的問題,保留一個
  2. 代碼優化
  3. 修復 remark42 最新評論報錯的 bug
  4. 修復說說的時區問題

New Features

  1. Added support for comments in "Shuoshuo"
  2. Added support for limiting the number of "Shuoshuo" entries (by time or number)

Updates

  1. Updated related dependency versions

Fixes

  1. Fixed the issue where disqus and disqusjs cannot coexist, keeping only one
  2. Code optimization
  3. Fixed the bug with the latest comments in remark42
  4. Fixed the timezone issue in "Shuoshuo"

5.1.0

20 Oct 09:51
Compare
Choose a tag to compare

新功能

  1. 添加 chart.js 圖表庫(標籤外挂)
  2. 適配 Algolia Search 5.0
  3. 搜索分頁按鈕圓角化
  4. 本地搜索結果列表顯示數字排序
  5. 章節導航和相關推薦支持 hover 顯示文章介紹
  6. 移除 Daovoice
  7. 導航欄添加背景虛化效果
  8. 導航欄 hover 效果增加圓角

修復

  1. 修復不啟用評論系統時,不蒜子統計不顯示的問題
  2. 修復背景漸變色無法生效的問題

改進

  1. 説説的標籤可選填
  2. 代碼精簡和優化
  3. 移動到説説日期,顯示完整的日期時間
  4. 説説的時間標籤改為 time 標籤
  5. 延遲調用 abcjs 函數以解決渲染問題
  6. 調整側邊欄文章分類的字體大小

New Features

  1. Added chart.js library (tag plugin)
  2. Adapted to Algolia Search 5.0
  3. Rounded corners for search pagination buttons
  4. Display numerical sorting in local search results list
  5. Chapter navigation and related recommendations support hover to show article introduction
  6. Removed Daovoice
  7. Added background blur effect to the navigation bar
  8. Added rounded corners to the navigation bar hover effect

Fixes

  1. Fixed the issue where Busuanzi statistics were not displayed when the comment system was not enabled
  2. Fixed the issue where background gradient color was not effective

Improvements

  1. Optional tags for "Shuoshuo"
  2. Code simplification and optimization
  3. Moved to "Shuoshuo" date to display the full date and time
  4. Changed the "Shuoshuo" time tag to a time element
  5. Delayed calling the abcjs function to resolve rendering issues
  6. Adjusted the font size of article categories in the sidebar

5.0.0

03 Oct 09:37
Compare
Choose a tag to compare

重大變更

由於整合了多個設定並更改了部分設定名稱,升級到 5.0 版本時,請重新設定 _config.yml 檔案。

新增功能與改進

  1. 新增 macstyle 設定,取消 mac / mac light 主題設定
  2. 整合搜尋相關設定
  3. 修改程式碼區塊設定
  4. 主頁文章新增多種版面配置
  5. 新增說說頁面
  6. 適配 hexo-blog-encrypt 加密外掛
  7. 改善手機端目錄的開啟效果
  8. 新增平滑滾動功能
  9. 支援以程式碼區塊方式撰寫 mermaid 圖表
  10. 可自訂文章標題位置
  11. 新增程式碼全螢幕按鈕
  12. 友情連結頭像改為圓角設計
  13. 優化程式碼,使用 hexo-util 的參數和 hexo 內建參數
  14. 可自訂搜尋框提示文字
  15. 未設定選單時,不顯示側邊欄目錄和按鈕
  16. 螢幕寬度超過 2000px 時,增加卡片高度
  17. 根據語言設定調整字型:簡體中文使用雅黑,其他使用正黑體
  18. 更新 plugins.yml
  19. 全新的側邊欄介面設計
  20. 新增 giscus 的 js 設定
  21. 調整 utterances js 的設定位置
  22. 新增 utterances option 設定
  23. 修改 giscus 的主題設定
  24. 多個介面元素改為圓角設計
  25. 可選擇圓角或直角介面風格
  26. 相簿載入按鈕新增圖示
  27. 改善標籤頁面的滑鼠懸停效果
  28. 調整側邊欄的滑鼠懸停效果
  29. 微調部分介面元素
  30. 背景圖片配置不再需要新增 url()
  31. 移除 messenger 聊天外掛
  32. 更新 fackbook 版本號
  33. 增加 香港繁體、日文和韓語
  34. 使用的新的複製api 代替舊的
  35. 增加 umami 分析
  36. 增加 umami 獲取訪問量/訪客數
  37. snackbar 增加透明度
  38. 文章頁下, nav fixed 下 顯示文章標題

問題修復

  1. 修復 Hexo 新版本下 Prism.js 無法正確高亮的問題
  2. 修復文章標籤為空時可能出現的錯誤
  3. 修正 mermaid 圖表可能出現的錯誤
  4. 解決未設定選單時控制檯報錯的問題
  5. 修復 Algolia 搜尋的每頁顯示數量設定無效的問題
  6. 解決 Algolia 搜尋結果出現滾動條的問題
  7. 修正滾動條出現上下按鈕的問題
  8. 修復相簿遠端連結未加字首的問題
  9. 修正 label 標籤外掛右側多餘空格的問題
  10. 解決 APlayer 報告記憶體洩漏的問題
  11. lazyload 為 false 時,artalk 無法正常載入評論的 bug
  12. 修復 gallery 出現抖動的 bug

效能優化

  1. 優化 PJAX 下的函數呼叫
  2. 整體程式碼優化
  3. 提升相容性
  4. 改善 Lighthouse 評分
  5. 在 PJAX 關閉時減少不必要的全局變數
  6. 優化 Waline 的 import 相容性
  7. 改善頁面進入效果
  8. 優化程式碼區塊工具列顯示邏輯
  9. 改善不同螢幕寬度下文章標題位置的顯示
  10. 優化標籤顏色生成演算法,避免過暗或過亮
  11. 調整 Artalk 和 Waline 在夜間模式下的字型顏色,與主題保持一致
  12. 調整 Algolia 搜尋載入動畫位置,避免換行
  13. 優化 Algolia 搜尋結果為空時的處理
  14. 改善系列文章的滑鼠懸停效果
  15. 優化 404 頁面程式碼
  16. 解決搜尋和側邊欄開啟時視窗抖動的問題
  17. 優化 tabs 標籤外掛的程式碼和效能
  18. 改善 tabs 中使用 gallery 標籤外掛時的圖片載入邏輯
  19. 優化目錄滾動效果,使當前標題保持在中間
  20. 調整螢幕寬度超過 1024px 時 gallerygroup 的顯示數量
  21. 優化 背景url 的判斷
  22. 修改部分用語
  23. timeline tag 樣式優化
  24. 優化 seo
  25. 優化 artalk 的最新評論

Breaking Changes

Due to the integration and renaming of several settings, please reconfigure the _config.yml file when upgrading to version 5.0.

Features

  1. Added macstyle setting, removed mac / mac light theme setting
  2. Integrated search-related settings
  3. Modified code block settings
  4. Added various layout options for homepage posts
  5. Introduced a "Shuoshuo" page
  6. Compatible with hexo-blog-encrypt plugin
  7. Improved mobile menu opening effect
  8. Added smooth scrolling feature
  9. Support for writing mermaid diagrams in code blocks
  10. Customizable article title position
  11. Added full-screen button for code
  12. Rounded design for friend link avatars
  13. Optimized code using hexo-util and built-in parameters
  14. Customizable search box placeholder text
  15. Sidebar menu and button hidden if no menu is set
  16. Increased card height for screens wider than 2000px
  17. Font adjustment: Simplified Chinese uses YaHei, others use Heiti
  18. Updated plugins.yml
  19. New sidebar interface design
  20. Added JS settings for Giscus
  21. Adjusted position of Utterances JS settings
  22. Added Utterances option settings
  23. Modified Giscus theme settings
  24. Multiple interface elements now have rounded designs
  25. Option to choose between rounded or square interface styles
  26. Added icons to album load buttons
  27. Enhanced hover effect on tag pages
  28. Adjusted sidebar hover effect
  29. Minor interface element tweaks
  30. Background image configuration no longer requires url()
  31. Removed Messenger chat plugin
  32. Updated Facebook version number
  33. Added support for Hong Kong Traditional Chinese, Japanese, and Korean
  34. New copy API replaces the old one
  35. Added Umami analytics
  36. Umami now tracks visits/visitor count
  37. Increased transparency for Snackbar
  38. Article title shown under nav when fixed on article pages

Fix

  1. Fixed Prism.js highlighting issue with new Hexo version
  2. Fixed potential error when article tags are empty
  3. Corrected errors in mermaid diagrams
  4. Resolved console errors when menu is not set
  5. Fixed Algolia search results per page setting issue
  6. Resolved scrollbar issue in Algolia search results
  7. Corrected appearance of up/down buttons in scrollbars
  8. Fixed missing prefix in album remote links
  9. Corrected extra space in label tag plugin
  10. Resolved memory leak report in APlayer
  11. Fixed Artalk comment loading bug when lazyload is false
  12. Fixed gallery shaking bug

Improvements

  1. Optimized function calls under PJAX
  2. Overall code optimization
  3. Improved compatibility
  4. Enhanced Lighthouse scores
  5. Reduced unnecessary global variables when PJAX is off
  6. Optimized Waline import compatibility
  7. Improved page entry effects
  8. Optimized code block toolbar display logic
  9. Improved display of article title position on different screen widths
  10. Optimized tag color generation algorithm to avoid too dark or light colors
  11. Adjusted font color for Artalk and Waline in night mode to match the theme
  12. Adjusted Algolia search loading animation position to avoid line breaks
  13. Optimized handling when Algolia search results are empty
  14. Improved hover effect for series articles
  15. Optimized 404 page code
  16. Resolved window shaking issue when search and sidebar are opened
  17. Optimized code and performance of tabs tag plugin
  18. Improved image loading logic in gallery tag plugin within tabs
  19. Enhanced scrolling effect in the directory to keep the current title centered
  20. Adjusted gallery group display number for screens wider than 1024px
  21. Optimized background URL judgment
  22. Modified some terminology
  23. Optimized timeline tag style
  24. Improved SEO
  25. Enhanced latest comments in Artalk

Full Changelog: 4.13...5.0.0

4.13.0

22 Feb 09:09
Compare
Choose a tag to compare

內容

  1. 適配 waline v3
  2. 適配 artalk 新版

修復

  1. 修復文章頁面,twikoo 無法獲取評論數的 bug

優化

  1. 首頁多個標籤和分類時,每個都增加標識
  2. 文章頁標題改為左邊

Feature

  1. Adapted to waline v3.
  2. Adapted to the new version of artalk.

Fixes

  1. Fixed a bug where twikoo couldn't retrieve the comment count on the article page.

Improvements

  1. Added identifiers to each tag and category on the homepage when there are multiple.
  2. Changed the position of the article page title to the left.

4.12.0

29 Dec 16:12
Compare
Choose a tag to compare

內容

  1. 適配 Artalk 新版本
  2. card_post_series 可配置標題顯示為系列的名字
  3. cdn 的 version 默認為 true

修復

  1. 當 front-matter 的 toc_number 沒有值時,toc_number 沒有按照主題配置應用的 bug
  2. Github 最新評論獲取報錯的 bug

優化

  1. 標題點擊範圍縮小為字體本身
  2. Waline 增加 destroy 調用

Feature

  1. Adaptation to the new version of Artalk
  2. The title of card_post_series can be configured to display as the series name
  3. The default value of the version in cdn is set to true

Fix

  1. Fixed a bug where toc_number did not apply according to the theme configuration when the toc_number in front-matter has no value
  2. Fixed a bug where an error occurred when fetching the latest comments from Github

Improvement

  1. The clickable range of the title has been reduced to the font itself
  2. Added a destroy call to Waline

4.11.0

24 Nov 08:45
Compare
Choose a tag to compare

內容

  1. 適配 hexo 7.0.0

修復

  1. 當瀏覽器不支持代碼複製時,提示不顯示的 bug
  2. 設置 click_to_scroll 後, 點擊標題中的鏈接無法正確跳轉的 bug
  3. 切換評論時,控制枱報 loadOtherComment 沒有定義的 bug

優化

  1. sidebar ui 微調
  2. 避免因為沒有更新配置而報錯的問題
  3. 更新插件版本

Content

  1. Adapted to hexo 7.0.0

Fixes

  1. Fixed a bug where the prompt for unsupported code copying was not displayed
  2. Fixed a bug where clicking on links in the title did not navigate correctly when click_to_scroll was enabled
  3. Fixed a bug where the console reported an undefined loadOtherComment when switching comments

Improvements

  1. Fine-tuned the sidebar UI
  2. Avoided error messages due to missing configuration updates
  3. Updated plugin versions

4.10

09 Oct 11:57
Compare
Choose a tag to compare

破壞性內容

  1. 更改 rightside-bottom 為 rightside_bottom

    - rightside-bottom:
    + rightside_bottom:
  2. 重構 gallery 標籤外掛

    1. 寫法變更

    2. 默認為滾動到顯示區域才加載圖片

    3. 更改依賴, 由 nk-o/flickr-justified-gallery 改為 egjs-infinitegrid

        CDN:
          option:
      -      # flickr_justified_gallery_js:
      -      # flickr_justified_gallery_css:
      +      # egjs_infinitegrid:
  3. 更改 ClickShowTextclickShowText

    -ClickShowText:
    +clickShowText:
      enable: false
      text:
        - I
        - LOVEeeeeeeeeeeeee
        - YOU
      fontSize: 15px
      random: true
      mobile: false
    
    CDN:
      option:
    -   ClickShowText:
    +   clickShowText:

內容

  1. 置頂圖標改為在標題左側

  2. 可配置打賞按鈕的文字

     reward:
       enable: false
    +  text:
       QR_code:
  3. 側邊欄增加系列文章顯示

    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
  4. 增加 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
  5. 移除 addthis 分享

    -addThis:
    - enable: false
    - pubid:
  6. 文章版權增加圖標顯示

  7. getScript 增加 attribute 配置

  8. 文章文字左右對齊

    +# Stretches the lines so that each line has equal width(文字向兩側對齊,對最後一行無效)
    +text_align_justify: true
  9. preconnect 根據 CDN 配置引入

  10. 移除 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
  11. 更改 headline 的 hover 效果

修復

  1. 修復網站為子目錄時,pjax 跳轉 404 錯誤
  2. 修復夜間模式下,小屏幕的 toc 滾動條顏色不明顯的 bug
  3. 修復設置字體超過 17px 時,toc 裏面的邊框異常的 bug
  4. 修復 float 浮動佈局導致評論寬度異常的 bug
  5. 修復當設置搜索文件為xml時,搜索 < 和 > 沒有結果的 bug
  6. 修復主頁滾動, 頂部圖特效有延遲的 bug
  7. 修復圖片附屬文字在 note 標籤外掛裏的位置與圖片重疊的 bug

優化

  1. 首頁社交圖標左右邊距調整
  2. 代碼優化
  3. tabs 標籤外掛的回到頂部箭頭位置調整
  4. 更新 plugin.yml
  5. 重構 main.js 代碼
  6. 優化 pjax 下的性能
  7. 優化手機端 toc 打開和關閉特效
  8. 文章進入特效改為 transform, 優化 stylus
  9. 目錄側邊欄出現滾動條時,元素不會被擠壓
  10. 處理 waline 的 url 後面多 / 導致跨域的問題
  11. 優化語言文件部分用詞
  12. disqus 和 disqusjs 的評論數獲取不到時,顯示為 0
  13. disqusjs 的評論數改為 api 獲取
  14. tabs content 裏最後一個元素 margin-bottom 改為 0
  15. 移除 noscript

Breaking Changes

  1. Changed rightside-bottom to rightside_bottom.

    - rightside-bottom:
    + rightside_bottom:
  2. Refactored the gallery tag plugin.

    1. Changed the implementation.

    2. Images are now loaded only when they are scrolled into view.

    3. Changed the dependency from nk-o/flickr-justified-gallery to egjs-infinitegrid.

        CDN:
          option:
      -      # flickr_justified_gallery_js:
      -      # flickr_justified_gallery_css:
      +      # egjs_infinitegrid:
  3. Changed ClickShowText to clickShowText

    -ClickShowText:
    +clickShowText:
      enable: false
      text:
        - I
        - LOVEeeeeeeeeeeeee
        - YOU
      fontSize: 15px
      random: true
      mobile: false
    
    CDN:
      option:
    -   ClickShowText:
    +   clickShowText:

Features

  1. Changed the position of the sticky icon to the left of the title.

  2. Added the ability to customize the text of the reward button.

     reward:
       enable: false
    +  text:
       QR_code:
  3. 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
  4. 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
  5. Removed the addthis sharing plugin.

    -addThis:
    - enable: false
    - pubid:
  6. Added an icon before the text in the copyright section.

  7. Added the ability to configure attributes for getScript.

  8. Added support for left and right alignment of article text.

    +# Stretches the lines so that each line has equal width(文字向兩側對齊,對最後一行無效)
    +text_align_justify: true
  9. Added support for preconnecting to the CDN based on configuration.

  10. 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
  11. Changed the hover effect of headlines.

Fix

  1. Fixed a bug where pjax would return a 404 error when the website was in a subdirectory.
  2. Fixed a bug where the scrollbar color was not clear on small screens in dark mode.
  3. Fixed a bug where the border in the TOC was abnormal when the font size was greater than 17px.
  4. Fixed a bug where the width of comments was abnormal in float layout.
  5. Fixed a bug where searching for < and > did not return results when the search file was XML.
  6. Fixed a bug where the top image effect on the homepage was delayed during scrolling.
  7. Fixed a bug where the caption of an image overlapped with the image in the note tag plugin.

Improvement

  1. Adjusted the left and right margins of social icons on the homepage.
  2. Optimized the code.
  3. Adjusted the position of the "back to top" arrow in the tabs tag plugin.
  4. Updated plugin.yml.
  5. efactored the code in main.js.
  6. Optimized performance under pjax.
  7. Optimized the opening and closing effects of the TOC on mobile devices.
  8. Changed the article entry effect to use transform and optimized the stylus.
  9. Prevented elements from being squeezed when the sidebar has a scrollbar.
  10. Fixed a cross-domain issue caused by extra slashes in the URL for Waline.
  11. Improved the wording in some language files.
  12. Displayed "0" when the comment count could not be obtained for Disqus and Disqusjs.
  13. Changed the method of obtaining the comment count for Disqusjs to use the API.
  14. Removed the bottom margin of the last element in the tabs content.
  15. Removed the noscript tag.

4.9.0

06 Jun 15:37
Compare
Choose a tag to compare

4.9.0 (2023/06/06)

Feature

  1. 適配 mermaid v10

  2. 大於 2000px 時,顯示區域增大

  3. 可配置 header 和 footer 是否添加黑色半透遮罩

    +# Add mask to header or footer (為 header 或 footer 添加黑色半透遮罩)
    +mask:
    +  header: true
    +  footer: true
  4. artalk 最新評論改為 api 直接調用

  5. waline 最新評論和評論數改為 api 直接調用

  6. 再次點擊右下角聊天按鈕,可關閉聊天

  7. 適配新版 artalk

  8. 支持隨機友鏈順序

Fix

  1. 修復 行內 mathjax 出現滾動條的 bug
  2. 修復當 top_img 為顏色時, 閲讀模式的頂部依舊顯示顏色的 bug
  3. 修復配置 subtitle 的 sub 沒有生效的 bug

Improvement

  1. 更新 hexo-renderer-stylus
  2. hr 的美化優化,避免影響第三方插件佈局
  3. 優化 mediumZoom
  4. 首頁微調
  5. 當配置了最新評論時,沒有配置評論時,不會再報錯
  6. tidio,crisp,daovoice,messenger 和 chatra 代碼優化