Skip to content

Releases: jerryc127/hexo-theme-butterfly

3.7.6

08 May 16:55
Compare
Choose a tag to compare

fix: 修復標題/博客名有 ‘ 時,pjax 會報錯的 bug
improvement: css調整

3.7.5

05 May 15:09
Compare
Choose a tag to compare

Breaking Change

  1. 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:
  2. lazyload 優化 (增加高斯模糊過度特效,增加配置 lazyload 範圍,佔位圖應用到全站)

    lazyload:
      enable: false
    -  post: /img/loading.gif
    +  field: site # site/post
    +  placeholder: /img/loading.gif
    +  blur: false

Feature

  1. 增加 tags 標簽外掛 - label

Fix

  1. 修復開啟anchor後,文章頁跳轉回主頁,主頁網址的hash添加上文章頁最後一個標題的 bug
  2. 修復開啟anchor後,瀏覽器上一頁/下一頁 跳轉會 404 的bug (文章頁的url hash 在pjax下變成 undefined)
  3. 修復 lazyload 報 undefined 的 bug close #532

Improvement

  1. 優化 pjax 下 404 頁面
  2. 優化 button tags 標簽外掛

3.7.1

29 Mar 17:34
Compare
Choose a tag to compare

fix: 修復 github-issues 最新評論 獲取的url格式 bug
fix: 當標題有符號'時,disqus 和 disqusjs 無法加載的 bug

3.7.0

18 Mar 17:13
Compare
Choose a tag to compare

Breaking Change

  1. 更改子目錄的寫法,與父目錄一致

  2. 移除 artitalk (如需要,請安裝 hexo-butterfly-artitalk)

    -# Artitalk
    -# see https://artitalk.js.org/
    -artitalk:
    -  appId:
    -  appKey:
    -  option:
    
    CDN:
    -	artitalk: https://cdn.jsdelivr.net/npm/artitalk
  3. 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

  1. 新增設置代碼高度限制,顯示展開按鈕

    +highlight_height_limit: false # unit: px
  2. prismjs 也可以配置 code_word_wrap

  3. 增加 kbd 樣式 #507

  4. 添加waline,valine 和twikoo 提供的文章閲讀數配置 #502

    valine:
    +  visitor: false
    waline:
    +  visitor: false
    twikoo:
    +  visitor: false
  5. 增加 HexoPlusPlus_Talk(需要安裝 hexo-butterfly-hpptalk)

  6. 增加 tags 標簽外掛 inlineImg

  7. gitalk 增加 option 配置

    gitalk:
      createIssueManually: false # Gitalk will create a corresponding github issue for your every single page automatically
    +  option:

Fix

  1. 修復prismjs 在 ios safari 下自動換行的bug
  2. 修復默認代碼大小不會隨着字體放大/放小而改變的bug
  3. 修復prismjs 無法識別的語言 顯示 null 而不是顯示 code 的 bug
  4. 在完全沒有配置的情況下,運行時控制台報null 的問題

Improvement

  1. 主頁分頁會定位到文章區域 #519
  2. css 優化,簡化自定義代碼色的 css 配置
  3. 搜索 hover 效果與其它目錄一致
  4. 百度統計適配 pjax #516
  5. 當文章頁cover 和 cover 的 default_img都沒有配置時,會去讀取default_top_img的參數
  6. 一句API 改為 https
  7. pug代碼優化

3.6.2

03 Feb 07:44
Compare
Choose a tag to compare

fix: mathjax 和 katex 没有加载js的bug

3.6.1

01 Feb 08:39
Compare
Choose a tag to compare

fix: 非ios設備下,手機頁面下文章頁有toc的界面出現滾動條
fix: 非ios設備下,在layout標簽內的元素,如是position: fixed,其相對定位會更改 #482 #483

3.6.0

30 Jan 08:49
Compare
Choose a tag to compare

Feature

  1. 增加首頁評論數顯示

    comments:
      ...
      count: false # Display comment count in post's top_img
    +  card_post_count: false # Display comment count in Home Page
  2. 最新評論更新

    1. <a> 標簽將會顯示 [鏈接]
    2. <img>標簽將會顯示 [圖片]
    3. <pre><code> 標簽將顯示 [代碼]
    4. github-issues 獲取到的 url 改為對應文章地址,而不是issues地址
    5. 時間 time 增加 datetime屬性
    6. waline 獲取到頭像會先匹配 waline數據庫是否有qq頭像屬性
    7. 部分評論顯示的時間改為更新時間
  3. aside ‘查看更多’按鈕 改為 圖標顯示在右上角

  4. 可配置最新評論的緩存時間

    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
  5. 增加 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
  6. 文章版權右上角改為 版權icon

  7. 增加配置 disable_top_img,禁用所有的top_img

    +# Disable all banner image
    +disable_top_img: false
  8. 增加 文章編輯

    +# 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

  1. 修復 文章頁面上滑子菜單圖標文字無法顯示的 bug #481
  2. 修復在 chrome上,進入頁面時,頁面元素會出現模糊到清晰 的 bug #479
  3. 修復夜間模式下,閲讀模式代碼塊背景顔色的顯示bug
  4. 修復打賞按鈕字數過多導致Hover異常的bug #473
  5. 修復評論裏 行內元素(表情/圖片)變成塊級元素(換行)的bug
  6. 修復點擊toc後,滾動完toc的highlight在點擊的上一個元素
  7. 修復子目錄下,打賞圖片跳轉鏈接會錯誤的bug
  8. 修復文字點擊關閉random無效的bug
  9. 修復手持設備橫向翻轉時,menu 沒有進行判斷,而導致樣式錯亂的bug
  10. 修復pjax下不會跳轉404頁面的bug
  11. 修復twikoo 評論數獲取會因為地域問題報錯的bug
  12. 修復 background-image 遇到鏈接有括號時會無法顯示的bug

Improvement

  1. meta description 限制在150字以內 #480
  2. pug優化和結構調整
  3. pug 判斷優化
  4. 友情鏈接界面增加title顯示(top_img設為false時)
  5. 升級facebook comment sdk版本
  6. 優化toc顯示,當向上滾動時,導航欄不會遮擋 toc #472
  7. pangu 改為全站渲染
  8. 最新評論js優化
  9. 調整 Readmode 標題邊距
  10. 卡片 hover box-shadow 微調
  11. 404頁面卡片增加hover
  12. 刪除部分多餘的代碼

Remove

  1. 移除百度推送(百度已棄用)和百度轉碼

    -# Disable Baidu transformation on mobile devices (禁止百度轉碼)
    -disable_baidu_transformation: true
    
    -# Baidu Push (百度推送)
    -baidu_push: false
  2. 移除 fragment_cache 配置(默認開啟)

    -# Caches the contents in a fragment, speed up the generation (開啟hexo自帶的緩存,加快生成速度)
    -fragment_cache: true

3.5.1

31 Dec 08:05
Compare
Choose a tag to compare

Feature

  1. twikoo增加 region 配置

Fix

  1. 修復twikoo 廣州地域下,最新評論無法讀取的bugs
  2. 修復waline背景設置無效的bugs
  3. 修復twikoo 廣州地域下,page 頁進入post頁,twikoo評論報錯的bugs

3.5.0

30 Dec 15:37
Compare
Choose a tag to compare

Feature

  1. 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
    
  2. 新增 Cloudflare Analytics

    +# Cloudflare Analytics
    +# https://www.cloudflare.com/zh-tw/web-analytics/
    +cloudflare_analytics:
  3. 新增 Microsoft Clarity

    +# Microsoft Clarity
    +# https://clarity.microsoft.com/
    +microsoft_clarity:
  4. readmode 優化

  5. aside 增加自定義 widget

  6. 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
  7. twikoo 增加 option 配置

    # Twikoo
    # https://github.com/imaegoo/twikoo
    -twikoo:
    +twikoo:
    +  envId:
    +  option:
  8. 增加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:
  9. 增加waline評論數顯示

  10. 增加waline最新評論模塊

    newest_comments:
      enable: true
    	...
    +  waline: false

Improvement

  1. 最新評論url 增加描點

  2. html結構優化

  3. 修改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

3.4.2

27 Dec 07:56
Compare
Choose a tag to compare

Fix

  1. 修復開啟 gitalk 評論數後與 toc 衝突的 bug #462
  2. 修復 jquery 在一些介面仍然載入問題
  3. 修復 medium zoom 報錯的 bug