github jerryc127/hexo-theme-butterfly 3.1.0

latest releases: 4.13, 4.12, 4.11...
3 years ago

Breaking Change

  1. 只支持 hexo 4.2.0 以上版本
  2. butterfly.yml 採用deepMerge, 與_config文件進行合併而不是替換

Feature

  1. 適配 hexo 5.0.0 的 prismjs, 代碼主題和各項功能

  2. 適配hexo 5.1.0 prismjs caption

  3. 可隱藏 Mobile sidebar 子菜單

    +# Hide the child menu items in mobile sidebar
    +hide_sidebar_menu_child: false
  4. 當寬度小於1024時,點擊toc滾動,增加滾動效果

  5. 可配置font-size/更改配置中 code-font 為 code-font-family

    font:
    +  global-font-size:
    +  code-font-size:
       font-family:
    -   code-font:
    +   code-font-family:
  6. 部分css由'px'改為'em',適應font-size值改變而改變

  7. pjax增加exclude配置

    -pjax: false
    +pjax:
    +  enable: false
    +  exclude:
  8. 新增 cnzz_analytics

    # Analysis
    # --------------------------------------
    
    # Baidu Analytics
    # https://tongji.baidu.com/web/welcome/login
    baidu_analytics:
    
    # Google Analytics
    # https://analytics.google.com/analytics/web/
    google_analytics:
    
    # Tencent Analytics
    # https://mta.qq.com/
    tencent_analytics: #500727214
    
    +# CNZZ Analytics
    +# https://www.umeng.com/
    +cnzz_analytics:
  9. 騰訊分析改為騰訊移動分析,並適配pjax

  10. aside增加position sticky

  11. 更改addtoany item的寫法

    addtoany:
      enable: false
    -  item:
    -    - facebook
    -    - twitter
    -    - wechat
    -    - sina_weibo
    -    - facebook_messenger
    -    - email
    -    - copy_link
    +	item: facebook,twitter,wechat,sina_weibo,facebook_messenger,email,copy_link
  12. 增加最後更新時間顯示/增加post count 配置

    aside:
    -  card_webinfo: true
    +  card_webinfo:
    +    enable: true
    +    post_count: true
    +    last_push_date: true
  13. 增加 aside 最新評論部件

    +newest_comments:
    +  enable: false
    +  limit: 6
    +  avatar: true
    +  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 # mp/identicon/monsterid/wavatar/retro/robohash/blank
    +  github_issues:
    +    enable: false
    +    repo:
    +  disqus:
    +    enable: false
    +    forum:
    +    api_key:

Improvements

  1. archives和card-post 改為flex佈局
  2. 點擊滾動,如果滾動是向上時,將會偏移60px, 避免導航欄遮擋 close #317
  3. 改cookies為localStorage存儲
  4. 設置中的theme_color可單獨配置幾個,而不需要全部開啟 close #314
  5. 調整webinfo 寬度小時的顯示
  6. aside 內容邊距調整
  7. Pjax下,刷新頁面時,會滾動到上次瀏覽的位置
  8. 修復mathjax溢出屏幕的Bugs # 321
  9. 部分css調整和html優化
  10. 刪除pwa中的theme-color配置,默認生成meta theme-color #340
  11. 補全card-categories和card-archives的 '查看更多‘鏈接 #337
  12. 代碼名字全大寫

Fix

  1. 修復canvas_nest 配置沒有生效的Bugs
  2. 修復rightsize-bottom配置無效的bug
  3. 修復夜間模式下代碼塊有背景的bugs(沒開啟渲染的情況下)
  4. 修復 prismjs 在 tags-toggle 外掛標簽裏,代碼塊顯示一行的bugs
  5. 修復當關閉代碼渲染後,標簽外掛裏的代碼塊會被壓縮到一行的bugs
  6. 修復在modern樣式下,note 標簽外掛沒有使用tags名時,沒有背景色和夜間模式文字顯示不清楚的bugs
  7. 修復主頁文章cover在深色模式下,邊角有小白邊的bugs #278
  8. 修復note標簽外掛下,代碼塊顯示背景色的bugs close #339
  9. 修復toc 滾動百分比不準的Bugs
  10. 修復comments沒設置時,報Unexpected token ')'的bugs #344
  11. 修復網站子目錄下,相關文章cover無法顯示的bugs #334

Remove

  1. 去除字體放大、縮小按鈕
  2. 移除 代碼default主題

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

NewReleases is sending notifications on new releases.