Commit Graph

329 Commits

Author SHA1 Message Date
Jerry Wong
7dc7942230 Merge pull request #1764 from zhdbk3/dev
feat: 随机背景
2025-11-25 14:54:04 +08:00
Jerry Wong
8ae57ac9bf Update layout.pug 2025-11-25 14:52:42 +08:00
着火的冰块nya
57a7db7a52 fix: 随机背景适配 Pjax 2025-11-25 12:29:48 +08:00
Jerry
4225d23cb6 feat: 升級到 v5.5.3-b2 並優化 hide 標籤組件
- 升級版本號到 5.5.3-b2
- 優化 hide 標籤的 toggle 按鈕樣式,添加旋轉圖標動畫
- 增強 Umami Analytics,在 URL 參數中添加 path 欄位
- 為 toggle-button 添加暗色模式支援
- 修復代碼格式問題
2025-11-21 16:33:27 +08:00
着火的冰块nya
c882e84cd2 feat: 随机背景(修正上次的错误) 2025-11-18 10:27:29 +08:00
Jerry
7985bdda9e - fix: 修正 Umami Analytics API 參數與資料處理邏輯
- style: 最佳化程式碼高亮工具列顯示與間距設定
- improve: 改善複製工具提示的定位邏輯
- bump: 版本號更新至 5.5.3
2025-11-17 15:42:00 +08:00
Jerry Wong
bdf77e328d Merge pull request #1765 from zhdbk3/fix-1762
fix: 修复 busuanzi data-pjax src
2025-11-17 14:46:39 +08:00
Jerry Wong
65a077a00d Refactor additional-js.pug structure and scripts 2025-11-17 14:45:38 +08:00
着火的冰块nya
83574c75ad fix: 修复 busuanzi data-pjax src 2025-11-17 11:21:22 +08:00
DeepChirp
15b7a018c6 fix(umami): adapt umami v3 2025-11-08 11:54:34 +08:00
Jerry
439014bbb6 chore: 升級版本至 5.5.2 並更新相依套件
- perf(highlight): 改善複製提示 UI,新增浮動動畫效果
- fix(shuoshuo): 為說說內容中的圖片新增延遲載入支援
- fix(mermaid): 支援在標籤助手中使用自訂配置選項
- fix: 使用 url_for() 處理主題資源路徑 (busuanzi, artalk)
- refactor(aside_archives): 重新命名 url_for 變數以保持一致性
- refactor(inject_head_js): 使用解構賦值命名方式
- chore(deps): 更新 hexo-util 至 4.0.0
- chore(plugins): 更新多個 CDN 套件版本
- style(highlight): 優化程式碼區塊工具列佈局與溢位處理
- fix(zh-CN): 修正分頁文字使用正確的簡體字「页」
2025-11-07 22:19:16 +08:00
Jerry
5e766ac40a chore: bump version to 5.5.1 and update dependencies
- Upgrade version from 5.5.0 to 5.5.1
- Update third-party dependencies: algolia, disqusjs, docsearch, fancybox, fontawesome, mermaid
- Replace Twitter with X in share configurations
- Enable CDN version numbers by default
- Fix shuoshuo page JSON security with safeJSON helper
- Improve image lazy loading regex to handle minified HTML
- Fix search result HTML structure and styling
- Add margin-top to search result numbering for better alignment
2025-10-02 14:32:08 +08:00
Jerry
4226c95818 Merge branch 'dev' of https://github.com/jerryc127/hexo-theme-butterfly into dev 2025-09-09 15:40:14 +08:00
Jerry
67c95cee0c 🔍 搜索功能改進:
- 新增本地搜索分頁配置 (enablePagination, hitsPerPage)
- 重構 Algolia 搜索邏輯,支援多索引和更好的錯誤處理
- 優化搜索 UI 樣式,包括分頁按鈕和響應式設計
- 改進搜索結果顯示,新增編號和更好的高亮處理

📦 依賴項更新:
- 更新 plugins.yml 中的多個插件版本 (abcjs, algolia, aplayer 等)
- 更新 package.json 版本號為 5.5.0

🎨 UI/UX 優化:
- 改進側邊欄和目錄的動畫效果
- 優化樣式佈局,調整寬度百分比
- 新增說說頁面的分頁導航組件
- 改進右側邊欄按鈕樣式

🐛 錯誤處理和代碼優化:
- 修復 Umami Analytics 的錯誤處理和數據驗證
- 改進懶加載圖片的正則表達式,避免匹配腳本標籤
- 移除未使用的變數和改進代碼結構
- 新增說說內容的 Markdown 渲染支援

🔧 其他改進:
- 更新翻譯功能,移除箭頭函數語法以提升相容性
2025-09-09 15:40:08 +08:00
Jerry Wong
0a72f43fae Merge pull request #1732 from DeepChirp/umami-script-name
feat(umami): 支持自定义脚本名称
2025-09-08 20:04:49 +08:00
DeepChirp
c61f55a773 fix(Pjax): 增加错误处理以防止Pjax失效 2025-09-05 23:43:14 +08:00
DeepChirp
6feac51de7 feat(umami): 支持自定义脚本名称 2025-09-03 12:56:07 +08:00
Jerry
ec1a226774 Fix merge conflicts 2025-08-19 14:55:15 +08:00
Jerry
5ee24defc3 feat: 預設關閉 structured_data
feat: 升級一些項目依賴
feat: 重寫 README.md 和 README_CN.md,改進文檔結構和內容
feat: tags 標籤插件夜間模式調整
feat: 加按鈕懸停效果和動畫
fix: 修復右下角箭頭圖標位置沒有居中的 bug
feat: 增加右下角箭頭和滾動百分比的切換效果
improvement: 優化 tags 頁標籤雲顯示效果
improvement: 整合部分js到 init.js
improvement: 統一 CSS 變數使用,改進主題一致性
2025-08-19 14:49:39 +08:00
DeepChirp
1b5bc97431 feat(structured_data): add alternateNames for backup 2025-07-31 19:37:25 +08:00
Jerry
0e9b8f5b69 Merge branch 'dev' of https://github.com/jerryc127/hexo-theme-butterfly into dev 2025-07-27 15:26:37 +08:00
Jerry
89b3626c84 fix: 修復 aside 最後一個 沒有 margin-bottom 的 bug
feat: 適配 fortawesome v7
improvement: 優化 loading 加載
2025-07-27 15:26:28 +08:00
Jerry Wong
c5417d4532 Merge pull request #1699 from DeepChirp/copyright-space
在`©`后添加空格
2025-07-23 15:21:23 +08:00
DeepChirp
dd8a18e8f4 chore: clean up unnecessary comments 2025-07-15 13:41:26 +08:00
Jerry
a61e216452 fix: 修正 abcjs 報錯的 bug 2025-07-09 13:24:42 +08:00
DeepChirp
b89f165be3 chore: add a space after © 2025-07-07 13:14:38 +08:00
Jerry
21c238e5c1 Merge branch 'dev' of https://github.com/jerryc127/hexo-theme-butterfly into dev 2025-06-25 16:27:06 +08:00
Jerry
60fa703fd3 feat: 增加導覽欄顯示文章標題的選項 feat: 文章頁增加'返回首頁'文字 improvement: 當 per_page 為 0 時,頁面不顯示導覽列 2025-06-25 16:25:46 +08:00
DeepChirp
a9fe9f5332 feat(structured_data): 为网站首页添加结构化数据 2025-06-12 11:43:32 +08:00
Jerry
73de62a6e1 Merge branch 'dev' of https://github.com/jerryc127/hexo-theme-butterfly into dev 2025-05-09 17:57:40 +08:00
Jerry
cf059bd533 fix: 更新 package.json 和 plugins.yml 中的版本號
fix: 修正 truncateContent 函數, 加密文章不显示自动擷取內容
feat: 增加首頁樣式以支持單詞換行
fix: 修正 truncateContent 函數以正確處理自動擷取內容
fix: 修复 card_archives 计数 bug
fix: 修正分頁順序邏輯
2025-05-09 17:52:01 +08:00
SamirLiu
baee803689 feat: move noscript to additional-js 2025-05-09 13:28:01 +08:00
SamirLiu
b7f1610859 update: DataLayer parameter 2025-05-08 14:03:08 +08:00
SamirLiu
5bac44a284 feat: add dataLayer push event pjaxComplete 2025-05-08 13:51:09 +08:00
SamirLiu
9c5294b40c fix: update analytics.pug for google tag manager under pjax 2025-05-07 19:21:39 +08:00
SamirLiu
cb3778c686 feat: add google tag manager noscript 2025-05-07 19:17:39 +08:00
Jerry
ca030589fb feat: 更新頁腳配置,增加導航欄和版權信息,改進樣式和結構
fix: 修改 getBgPath 函數以使用 this.url_for 獲取圖片的正確路徑
feat: 增加右側配置按鈕的動畫效果
2025-03-23 23:20:12 +08:00
Jerry
628d1bbe52 Merge branch 'dev' of https://github.com/jerryc127/hexo-theme-butterfly into dev 2025-03-02 15:27:34 +08:00
Jerry
ede4f8bfea update 2025-03-02 15:27:16 +08:00
Yuchen Mu
576fa5c80e fix: resolve issues from previous commit about feat(score tag) 2025-03-02 10:23:40 +08:00
Yuchen Mu
6019cc8b7c Merge branch 'jerryc127:dev' into dev 2025-03-02 10:12:00 +08:00
Yuchen Mu
2de7d34b2b feat(score tag): support RenderAbc options
Modified the score tag to pass custom options to the abcjs RenderAbc interface.
This enhancement enables proper rendering of guitar tablature with custom
settings such as instrument tuning, labels, and formatting options.
2025-02-24 19:03:46 +08:00
冰梦
4b8a610c08 Update pjax.pug
自定义404.html跳转更平滑,使用 window.location.href = e.request.responseURL 加载,自定义404.html加载速度缓慢,可能会出现loading二次加载
2025-02-20 14:10:13 +08:00
Jerry
13720bd94d .DS_Store banished! 2025-02-16 21:26:08 +08:00
Jerry
3028b08526 update 2025-02-16 20:53:10 +08:00
Jerry
f605e6dc89 update 2025-02-16 20:38:17 +08:00
cxyfer
1e20234d74 fix: update addtoany item reference for correct sharing functionality 2025-01-17 02:19:21 +08:00
myw
0d0001c808 feat: 更新 plugins.yml 中的依賴版本至最新
feat: 優化 aside_archives ,改進性能和可讀性
feat: 改善 inlineImg 和 timeline 標籤的文檔,優化時間線邏輯
feat: 更新 gallery 標籤以支持額外參數,優化圖片顯示邏輯
improvement: 優化隨機封面過濾器邏輯, 避免連續重複
feat: 最新評論限制顯示 1-10 條之間
fix: artalk 的最新評論顯示待定或者封禁的評論的 bug
2024-12-10 20:35:58 +08:00
myw
247c1b664d feat: 更新 lazyload 配置,支持原生 lazyload 功能
feat: 代碼優化
feat: 優化 pageType 邏輯
fix: 修復解密文章後, chartjs 沒有加載的 bug
2024-11-30 13:38:39 +08:00
myw
f7483d59b5 Merge branch 'dev' of https://github.com/jerryc127/hexo-theme-butterfly into dev 2024-11-15 14:56:56 +08:00