github jerryc127/hexo-theme-butterfly 5.0.0

15 hours ago

重大變更

由於整合了多個設定並更改了部分設定名稱,升級到 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

Don't miss a new hexo-theme-butterfly release

NewReleases is sending notifications on new releases.