Skip to content

Releases: jerryc127/hexo-theme-butterfly

3.2.0

28 Sep 14:06
Compare
Choose a tag to compare

Breaking Change

  1. 更改canvas_ribbon_piao 為 canvas_fluttering_ribbon

    -canvas_ribbon_piao:
    +canvas_fluttering_ribbon:
      enable: false
      mobile: false
  2. 刪除特效js,改為cdn引入

    CDN:
      # background effect
    -  canvas_ribbon: /js/third-party/canvas-ribbon.js
    -  canvas_ribbon_piao: /js/third-party/piao.js
    -  canvas_nest: /js/third-party/canvas-nest.js
    
    +  canvas_ribbon: https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/canvas-ribbon.min.js
    +  canvas_fluttering_ribbon: https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/canvas-fluttering-ribbon.min.js
    +  canvas_nest: https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/canvas-nest.min.js
    
      # effect
    -  activate_power_mode: /js/third-party/activate-power-mode.js
    -  fireworks: /js/third-party/fireworks.js
    -  click_heart: /js/third-party/click_heart.js
    -  ClickShowText: /js/third-party/ClickShowText.js
    
    +  activate_power_mode: https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/activate-power-mode.min.js
    +  fireworks: https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/fireworks.min.js
    +  click_heart: https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/click-heart.min.js
    +  ClickShowText: https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/click-show-text.min.js
    

Feature

  1. 可設置首頁文章不顯示內容/description

    # Display the article introduction on homepage
    # 1: description
    # 2: both (if the description exists, it will show description, or show the auto_excerpt)
    # 3: auto_excerpt (default)
    +# false: do not show the article introduction
    index_post_content:
      method: 3
      length: 500 # if you set method to 2 or 3, the length need to config
  2. 主頁文章時間和文章頁文章時間可以配置顯示日期還是相對時間

    post_meta:
      page: # Home Page
    +    date_format: relative # date/relative 顯示日期還是相對日期
      post:
    +    date_format: relative # date/relative 顯示日期還是相對日期
    
  3. top_img 可配置 (留空(默認色)/顏色(HEX值/RGB值/顔色單詞/漸變色)/圖片鏈接/ false(不顯示top_img))

  4. footer可配置背景 [留空/false(默認色)/顏色(HEX值/RGB值/顔色單詞/漸變色)/圖片鏈接/true(跟top_img一樣)]

  5. 網站背景可配置 (顏色(HEX值/RGB值/顔色單詞/漸變色)/漸變色/圖片鏈接)

  6. 增加 tag_per_img 配置(可為各個tag 單獨配置top_img)

    +tag_per_img:
  7. 增加 category_per_img 配置(可為各個category單獨配置top_img)

    +category_per_img:
  8. note 標籤優化(可自定義icon圖標/可覆蓋配置中的style)

  9. 夜間模式下,背景顔色/top-img/footer-bg 設置為顔色時,不再強制顯示黑色,而是改為遮罩降低亮度

  10. 增加部分特效 Mobile設置(activate_power_mode/fireworks/click_heart/ClickShowText)

    activate_power_mode:
      ...
    +  mobile: false
    
    fireworks:
       ...
    +  mobile: true
    
    -click_heart: false
    +click_heart:
    +  enable: false
    +  mobile: false
    
    ClickShowText:
      enable: false
      ...
    +  mobile: false
  11. 添加 artitalk 説説插件

    +# Artitalk
    +# see https://artitalk.js.org/
    +artitalk:
    +  appId:
    +  appKey:
    +  option:
    
    CDN:
    +  artitalk: https://cdn.jsdelivr.net/npm/artitalk
  12. 網頁進入動畫效果可關閉

    +# Enter transitions (開啟網頁進入效果)
    +enter_transitions: true

Improvements

  1. preloader 在 pjax 下 每個頁面都會加載
  2. 修改判斷,避免用户設置2個lightbox 而導致報錯(只能設置一個)
  3. 精確時間顯示 (剛剛/幾分鐘前/幾小時前/幾天前/幾個月前)
  4. 刪除不必要的語言文件和css
  5. Open_Graph 改為 hexo 內置 生成
  6. 當隱藏部分沒配置時,左下角設置按鈕會消失 #353
  7. aside 分類 收縮/展開 增加slide效果
  8. darkmode 字體顔色加深
  9. 優化nav的進入,應該修復一些用户在本地測試中無法顯示nav的bugs
  10. 最新評論 leancloud呼叫由js sdk 改為 rest api 呼叫。應用可以不與valine同一個
  11. 最新評論增加錯誤輸出
  12. tags 設定彩色顯示後,字型大小將根據tag的文章數量而變化 close #365
  13. 調整tags頁和categories頁在寬度小於768時的字體大小
  14. 主題文件分類調正
  15. 當點擊評論框時,valine背景圖片隱藏

Fix

  1. 修復當hexo的_config沒有設置description時,會導致pjax在頁面與文章間切換會無效 #381
  2. 修復鼠標點擊文字特效,文字過長導致頁面有滾動條的bugs
  3. 修復本地搜索文章鏈接無法跳轉bugs

Remove

  1. 移除anime js, 集成在fireworks的js裏

    CDN:
    -  anime: https://cdn.jsdelivr.net/npm/animejs@latest/anime.min.js
  2. 刪除不必要的語言檔案

chore

  1. update hexo-renderer-stylus to 2.0.1

3.1.1

06 Sep 14:16
Compare
Choose a tag to compare

Fix:

  1. 修復關閉last push date 後, 報 'hour' 找不到的bugs
  2. 修復開啟 prismjs 後, 在低版本的 safari 會出現 js 報錯的 Bugs

3.1.0

31 Aug 05:45
Compare
Choose a tag to compare

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主題

3.0.1

11 Aug 13:28
Compare
Choose a tag to compare
  1. 修復導航側邊欄沒有進入特效的Bugs
  2. 修復Hexo 5.0.0 以下版本, toc遇到中文不會滾動的bugs
  3. 修復pjax下,同時開啓Open_Graph_meta和Livere,Livere評論後臺顯示的來源頁面與實際不同 的bugs

3.0.0

05 Aug 14:08
Compare
Choose a tag to compare

Fix

  1. 修復文章頁沒有lazyload的bugs
  2. 修復livere在pjax下的bugs

3.0.0 RC2

01 Aug 06:46
Compare
Choose a tag to compare

Breaking Change

  1. 支持雙評論系統配置/評論配置整理/評論增加lazyload

    +comments:
    +  # Up to two comments system, the first will be shown as default
    +  # Choose: Disqus/Disqusjs/Livere/Gitalk/Valine/Utterances/Facebook Comments
    +  use:
    +  # - Valine
    +  # - Disqus
    +  text: true # Display the comment name next to the button
    +  # lazyload: The comment system will be load when comment element enters the browser's viewport.
    +  # If you set it to false, the comment count will be invalid
    +  lazyload: false
    +  count: false # Display comment count in top_img
    
    disqus:
    -  enable: false
    -  count: false # dispaly comment count in top_img
    
    disqusjs:
    -  enable: false
    -  count: false # dispaly comment count in top_img
    
    livere:
    -  enable: false
    
    gitalk:
    -  enable: false
    -  count: false # dispaly comment count in top_img
    
    valine:
    -  enable: false # if you want use valine,please set this value is true
    -  count: false # dispaly comment count in top_img
    
    utterances:
    -  enable: false
    
    facebook_comments:
    -  enable: false
    -  count: false
  2. footer配置整理,修改部分用語 #279

    -since: 2020
    -footer_custom_text:
    -footer_copyright: true
    -ICP:
    -  enable: false
    -  url:
    -  text:
    -  icon: /img/icp.png
    
    +footer:
    +  owner:
    +    enable: true
    +    since: 2020
    +  custom_text: 
    +  copyright: true # Copyright of theme and framework
    +  ICP: # Chinese ICP License
    +    enable: false
    +    url:
    +    text:
    +    icon: /img/icp.png
  3. 移除‘添加書籤’功能,可執行配置按鈕

    aside:
      card_author:
        enable: true
        description:
    +    button:
    +      icon: fab fa-github
    +      text: Follow Me
    +      link: https://github.com/xxxxxx
  4. copy的copyright增加字數限制配置,可配置多少字以上才添加版權信息

    copy:
      enable: true
    -  copyright: false
    +  copyright:
    +    enable: false
    +    limit_count: 50
  5. aside recent post可設置按發表時間或者更新時間排序

    aside:
      card_recent_post:
        enable: true
        limit: 5 # if set 0 will show all
    +    sort: date # date or updated
  6. 更換typed.js/meting CDN

    -typed: https://cdn.jsdelivr.net/npm/typed.js
    -meting_js: https://cdn.jsdelivr.net/npm/[email protected]/dist/Meting.min.js
    
    +typed: https://cdn.jsdelivr.net/npm/typed.js/lib/typed.min.js
    +meting_js: https://cdn.jsdelivr.net/gh/metowolf/[email protected]/dist/Meting.min.js

Feature

  1. 增加文章過期提醒

    +# Displays outdated notice for a post (文章過期提醒)
    +noticeOutdate:
    +  enable: false
    +  style: flat # style: simple/flat
    +  limit_day: 500 # When will it be shown
    +  position: top # position: top/bottom
    +  message_prev: It has been
    +  message_next: days since the last update, the content of the article may be outdated.
  2. 增加mac light 代碼框配色

  3. 文章copyright 可單獨配置

  4. card-category 中category名稱和數字限制一行顯示

  5. 簡繁轉換優化,placeholder也會被轉換

  6. 引入css變數,減少css體積

  7. 新增 Pjax #234

    +# Pjax [Beta]
    +# It may contain bugs and unstable, give feedback when you find the bugs.
    +# https://github.com/MoOx/pjax
    +pjax: false
  8. 添加第三方chat服務 crisp

    +# crisp
    +# https://crisp.chat/en/
    +crisp:
    +  enable: false
    +  website_id:
  9. 谷歌廣告增加自動廣告配置,減少不必要的js加載

    google_adsense:
      enable: false
    +  auto_ads: true
      js: https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js
      client:
      enable_page_level_ads: true
  10. 當post_asset_folder為true時,post的top_img和cover可直接引用同名文件夾下的圖片,只需要寫圖片名字和後綴就行 #270

  11. 增加Yandex Webmaster tools verification配置

    +# Yandex Webmaster tools verification setting
    +# see https://webmaster.yandex.com/
    +yandex_site_verification:
  12. post-meta可以配置是否顯示文字

    post_meta:
      page: # Home Page
        date_type: created # created or updated or both 主頁文章日期是創建日或者更新日或都顯示
        categories: true # true or false 主頁是否顯示分類
        tags: false # true or false 主頁是否顯示標籤
    +    label: true # true or false 顯示描述性文字
      post:
        date_type: both # created or updated or both 文章頁日期是創建日或者更新日或都顯示
        categories: true # true or false 文章頁是否顯示分類
        tags: true # true or false 文章頁是否顯示標籤
    +    label: true # true or false 顯示描述性文字
  13. 手機端post-meta調整顯示/支持顯示分類

  14. 代碼框滾動條顔色隨代碼主題變化

  15. 頭像/打賞圖片 增加lazyload

  16. 提升highlight-tool的加載速度

  17. disqus/disqusjs/facebook comments 可隨夜間模式按鈕切換而轉換主題

  18. mathjax升級到3 #216

  19. pangu.js 只會渲染 body-wrap 區域

  20. 放大字體和縮小字體 限制在 10px~20px

  21. 更新谷歌分析代碼(gtag)

  22. 移除blueimp_md5 js

    -blueimp_md5: https://cdn.jsdelivr.net/npm/blueimp-md5/js/md5.min.js
  23. 夜間模式和閲讀模式微調

Fix

  1. 修復右下角按鈕被button標籤外掛遮擋的bugs
  2. 修復開啟photofigcaption後,圖庫會出現界面錯亂的Bugs
  3. 修復tabs外掛標簽與aplayer插件衝突而異常的bugs
  4. aplayer的間距調整
  5. 修復文章front-matter的highlight_shrink和toc為空時,會出現js報錯的bugs
  6. 修復BUTTON標籤嵌套使用在其他標籤時,生成多了br標籤而導致樣式不同的bugs
  7. 修復部分設備遇到mobile-sidebar無法滾動的bugs
  8. 修復文章頁部分元素內文字溢出的Bugs
  9. 調整當card-category有收縮按鈕時的顯示佈局
  10. 修復配置PWA參數時,如果網站是子目錄時,會出現加載不到文件的bugs
  11. 修復hexo douban插件 點擊上/下一頁出現圖片變為null的bugs
  12. 適配hexo 5.0.0 修復toc點擊不會跳轉的bugs
  13. 適配hexo 5.0.0 修復toc不會隨著文章而滾動的bugs
  14. 修復Valine 的requiredFields設置為空 無效的bugs
  15. 調整手機界面下ol ul li的邊距 #267
  16. 修復facebook comments 在手機下寬度不是100%的bugs
  17. 修復share.js 分享的文章圖片都顯示同一張的bugs
  18. 去除note標籤外掛設為modern時,a標籤的下劃線
  19. 修正一些不正確的html結構
  20. 修復fancybox的alt會顯示undefined的bugs
  21. 修復footer藍色背景下,icp 文字hover 文字變藍看不清的Bug

3.0.0 RC 1

16 Jun 10:46
Compare
Choose a tag to compare

Breaking Change

  1. 從3.0開始,不再對IE瀏覽器進行適配

  2. 強制使用fontawesome v5(會對一些自定義icon產生影響,請替換為V5圖標)

    -# fontawesome圖標
    -# 默認使用的是 fontawesome v4版本的圖標
    -fontawesome_v5:
    -  enable: false
    
    CDN:
    -  # fontawesome
    -  fontawesome_v4: https://cdn.jsdelivr.net/npm/font-awesome@latest/css/font-awesome.min.css
    -  fontawesome_v5: https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css
    +	fontawesome: https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css
  3. _config.yml 內容修改

    1. 精簡baidu_push/instantpage/click_heart/readmode/footer_copyright/medium_zoom/fancybox配置

      -baidu_push:
      -  enable: false
      
      -instantpage:
      -  enable: true
      
      -click_heart:
      -  enable: false
      
      -readmode:
      -  enable: true
      
      -footer_copyright:
      -  enable: true
      
      -medium_zoom:
      -  enable: false
      
      -fancybox:
      -  enable: true
      
      +baidu_push: false
      +instantpage: true
      +click_heart: false
      +readmode: true
      +footer_copyright: true
      +medium_zoom: false
      +fancybox: true
    2. 修改runtimeshow 的start_date 為publish_date

      runtimeshow:
        enable: true
      -  start_date: 6/7/2018 00:00:00
      +  publish_date: 6/7/2018 00:00:00
    3. laibili 改名為 LiveRe

      -laibili:
      +livere:
        enable: false
        uid:
    4. 改hr為hr_icon 可設置取消icon

      # 水平分隔綫
      -hr:
      +hr_icon:
        enable: true
        icon: #fontawesome上圖標的Unicode
        icon-top:
    5. 更改loading_bg為error_img,post-loading移到lazyload去

      -lodding_bg:
      +error_img:
        flink: /img/friend_404.gif #404後圖片
        post_page: /img/404.jpg #404後圖片
      -  post: /img/loading.gif #加載動畫
      
      lazyload:
        enable: true
      +  post: /img/loading.gif #加載動畫
    6. pangu 的field配置只能配置site/post

      pangu:
        enable: true
      -  field: page # page/post
      +  field: site # site/post
    7. 整合auto_open_sidebar到toc去

      toc:
        enable: true
        number: true
      +  auto_open: true # auto open the sidebar
      
      -# auto open the sidebar in 'post'
      -auto_open_sidebar:
      -  enable: true
    8. font去除enable配置

      # 全局字體
      font:
      -  enable: false
      -  font-family: Lato, Helvetica Neue For Number, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, PingFang SC, Hiragino Sans GB, MicrMicrosoft YaHei", Helvetica Neue, Helvetica, Arial, sans-serif
      -  code-font: consolas, Menlo, "PingFang SC", "Microsoft YaHei", monospace, Helvetica Neue For Number
      
      +  font-family:
      +  code-font:
    9. 刪除部分配置

      valine:
      -  notify: false # valine mail notify (true/false) Deprecated in v1.4.0+
      -  verify: false # valine verify code (true/false) Deprecated in v1.4.0+
      
      translate:
      -  #博客網址
      -  cookieDomain: 'https://xxx/'
    10. 刪除twitter_meta配置

      -# twitter分享自動帶上樣式
      -# -https://i.loli.net/2019/09/08/qm3RfvUCKbct1Wz.png
      -twitter_meta: true

Feature

  1. table寬度佔滿顯示

  2. 增加系統Darkmode切換監控,當系統切換Darkmode時,主題會立刻切換

  3. card_description 支持html書寫

  4. Dark Mode和Light Mode 切換按鈕icon更換

  5. 適配hexo自帶標簽 Pullquote

  6. 百度推送鏈接增加dns-prefetch

  7. canonical 設為默認生成 不再提供配置

    -# 避免重複網址分散seo
    -canonical: true
  8. instantpage js 加載增加defer

  9. fireworks 增加z-index配置

    fireworks:
      enable: false
    +  zIndex: 9999 # -1 or 9999
  10. 新的Tag Plugins - button

  11. 新的Tag Plugins - tabs

  12. 可配置justifiedGallery CDN

    CDN:
    +  # justifiedGallery
    +  justifiedGallery_js: https://cdn.jsdelivr.net/npm/justifiedGallery/dist/js/jquery.justifiedGallery.min.js
    +  justifiedGallery_css: https://cdn.jsdelivr.net/npm/justifiedGallery/dist/css/justifiedGallery.min.css
  13. 新設計404頁面

  14. aplayer js /css 可配置,在文章front-matter中設置aplayer. 防止aplayer在每個頁面都插入代碼

    CDN:
    +  # aplayer
    +  aplayer_css: https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.css
    +  aplayer_js: https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.js
    +  meting_js: https://cdn.jsdelivr.net/npm/[email protected]/dist/Meting.min.js
  15. 增加在綫聊天 Chat Services (chatra/tidio/daovoice/gitter), 可配置主題chat按鈕替換原在綫聊天按鈕

    +# Chat Button [recommend]
    +# It will create a button in the bottom right corner of website, and hide the origin button
    +chat_btn: false
    
    +# The origin chat button is displayed when scrolling up, and the button is hidden when scrolling down
    +chat_hide_show: false
    
    +# chatra
    +# https://chatra.io/
    +chatra:
    +  enable: false
    +  id:
    
    +# tidio
    +# https://www.tidio.com/
    +tidio:
    +  enable: false
    +  public_key:
    
    +# daovoice
    +# http://daovoice.io/
    +daovoice:
    +  enable: false
    +  app_id:
    
    +# gitter
    +# https://gitter.im/
    +gitter:
    +  enable: false
    +  room:
  16. 可配置rightside按鈕與底部的距

    +# 右下角按鈕距離底部的距離(默認單位為px)
    +rightside-bottom:
  17. 更換lazyload服務商

    CDN:
    -	lazyload: https://cdn.jsdelivr.net/npm/lozad/dist/lozad.min.js
    +	lazyload: https://cdn.jsdelivr.net/npm/vanilla-lazyload/dist/lazyload.iife.min.js
  18. card-categories增加收縮/展開按鈕

    aside:
      card_categories:
        enable: true
        limit: 8 # if set 0 will show all
    +    expand: none # none/true/false
  19. 更改auto_excerpt為index_post_content,並擁有三種方法可選

    -# 自動節選
    -auto_excerpt:
    -  enable: true
    -  length: 150
     
    +# Display the article introduction on homepage
    +# 1: description
    +# 2: both (if the description exists, it will show description. or show the auto_excerpt)
    +# 3: auto_excerpt (default)
    +index_post_content:
    +  method: 3
    +  length: 500 # if you set method to 2 or 3, the length need to config
    
  20. 可在post裏單獨設置 auto_open: false關掉sidebar自動打開 #232

  21. 友情鏈接界面代碼優化/增加分類描述/分類名字和描述可以不寫/友情鏈接yml寫法更改(舊的寫法依舊有效,沒影響)

  22. 文章/頁面font-matter 可設置highlight_shrink (true or false)

  23. 代碼框優化

    1. 調整部分代碼顔色
    2. 增加一款代碼主題 mac
    3. 代碼框主題支持自定義
  24. 閲讀模式下去掉代碼高亮

  25. disqusjs更新js/css版本,增加nocomment配置

    disqusjs:
      enable: false
      shortname:
      siteName:
      apikey:
    -  api: https://disqus.skk.moe/disqus/ #一般情況下無需修改 API 地址
    +  api:
    +  nocomment: # display when a blog post or an article has no comment attached
      admin:
      adminLabel:
      count: false # dispaly comment count in top_img
    
    CDN:
    -  disqusjs: https://cdn.jsdelivr.net/npm/[email protected]/dist/disqus.js
    -  disqusjs_css: https://cdn.jsdelivr.net/npm/[email protected]/dist/disqusjs.css
    +  disqusjs: https://cdn.jsdelivr.net/npm/disqusjs@1/dist/disqus.js
    +  disqusjs_css: https://cdn.jsdelivr.net/npm/disqusjs@1/dist/disqusjs.css
  26. 打賞增加鏈接配置 /打賞寫法更改(舊寫法依然有用)#240

    # 打賞按鈕
    reward:
      enable: true
      QR_code:
    -    - itemlist:
    -        img: /img/wechat.jpg
    -        text: 微信
    -    - itemlist:
    -        img: /img/alipay.jpg
    -        text: 支付寶
    +    - img: /image/wechat.jpg
    +      link:
    +      text: 微信
    +    - img: /image/alipay.jpg
    +      link:
    +      text: 支付寶
  27. 移除JS-COOKIES

    CDN:
    -  js_cookies: https://cdn.jsdelivr.net/npm/js-cookie/dist/js.cookie.min.js
  28. 可為文章配置是否顯示TOC,即使配置中已把toc設為false

Fix

  1. 修正側邊欄目錄收縮、展開圖標不對齊的bugs
  2. 修改部分用語(zh-CN/zh-TW/en)
  3. 修復card-categories和card-archives 邊緣點擊沒有跳轉的bugs
  4. 修復網站是子目錄時,社交網站為相對地址時,地址生成錯誤的bugs
  5. 修復最後一篇文章的Pagination沒有佔據全寬度的Bug
  6. 修復推薦文章佈局在microsoft edge(舊版)顯示的Bug
  7. 修復閲讀模式下 黑色代碼框下字體顯示不清楚 #223
  8. 修復當blog_title_font不是設置google字體時,加載了preconnect //fonts.googleapis.com 的bugs
  9. 修復設置copy為false時,會導致代碼複製也無法複製的bugs
  10. 閲讀模式調整
  11. 修復部分壓縮軟件壓縮html報錯的bugs

2.3.5

01 May 11:02
Compare
Choose a tag to compare

Feature

  1. beautify 可配置生效於全站還是post頁 #218
beautify:
  enable: true
+  field: post # site/post
  title-prefix-icon: '\f0c1'
  title-prefix-icon-color: '#F47466'
  1. 更換lazyload js
-lazyload:
-  enable: true

+lazyload: true

CDN:

-  lazyload: https://cdn.jsdelivr.net/npm/lazysizes@latest/lazysizes.min.js
+  lazyload: https://cdn.jsdelivr.net/npm/lozad/dist/lozad.min.js
  1. 增加文章anchor配置
+ # anchor
+ # when you scroll in post , the url will update according to header id.
+ anchor: false

Fix

  1. 修復當menu沒設置圖標時,會報Cannot read property 'trim' of undefined 的bug
  2. 修復meta description 自動生成文章前200文字時部分沒有轉義的bug
  3. 修復開啟lazyload後,使用{% asset_img slug [title] %} 無法顯示照片的bug
  4. 修復tags頁標籤只顯示8個的bug
  5. 修復當博客root不是'/'時,引用本地圖片會顯示不出的bug
  6. 修復替換url hash 導致頁面跳動的bug

2.3.0

28 Apr 07:41
Compare
Choose a tag to compare

Breaking Change

  1. 增加Facebook Comments

    +# Facebook Comments Plugin
    +# https://developers.facebook.com/docs/plugins/comments/
    +facebook_comments:
    +  enable: false
    +  app_id:
    +  user_id: # optional
    +  pageSize: 10 # The number of comments to show
    +  order_by: social # social/time/reverse_time
    +  lang: en_US # Language en_US/zh_CN/zh_TW and so on
    +  count: false
  2. 增加頁面加載動畫Preloader #193

    +# 加載動畫 Loading Animation
    +preloader: false
  3. aside card-tags可配置是否顯示顏色/aside subtitle可配置,優先顯示配置內容、沒有的顯示頁面subtitle #191 /aside widget 增加部分參數可配置/aside widget的Categories,Tags,post,Archives可配置limit/整合公告欄配置到aside去

    aside:
      enable: true
      mobile: true # 手機頁面( 顯示寬度 < 768px )是否顯示aside內容
      position: right # left or right
    -  card_author: true
    -  card_announcement: true
    -  card_recent_post: true
    -  card_categories: true
    -  card_tags: true
    -  card_archives: true
    +  card_author:
    +    enable: true
    +    description:
    +  card_announcement:
    +    enable: true
    +    content: This is my Blog
    +  card_recent_post:
    +    enable: true
    +    limit: 5 # if set 0 will show all
    +  card_categories:
    +    enable: true
    +    limit: 8 # if set 0 will show all
    +  card_tags:
    +    enable: true
    +    limit: 40 # if set 0 will show all
    +    color: false
    +  card_archives:
    +    enable: true
    +    type: monthly # yearly or monthly
    +    format: MMMM YYYY # eg: YYYY年MM月
    +    order: -1 # Sort of order. 1, asc for ascending; -1, desc for descending
    +    limit: 8 # if set 0 will show all
      card_webinfo: true
      
    -# 網站公告
    -announcement:
    -  content: 感謝訪問本站,若喜歡請收藏 ^_^
    
  4. 改CDN_USE為inject,可插入代碼到head或者bottom

    -# CDN
    -# 網站必須
    -# 可根據需要自行添加js/css
    -CDN_USE:
    -  css:
    -    - /css/index.css
    
    -  js:
    -    - https://cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js #/js/third-party/jquery.min.js
    -    - /js/utils.js
    -    - /js/main.js
    
    +# inject
    +# 插入代碼到頭部</head>之前 和 尾部</body>之前
    +inject:
    +  head:
    +  	# - <link rel="stylesheet" href="xxxxx">
    +  bottom:
    +  	# - <script src="xxxx"></script>
    
    # CDN
    # 非必要不要修改
    CDN:
    +  # main
    +  main_css: /css/index.css
    +  jquery: https://cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js
    +  main: /js/main.js
    +  utils: /js/utils.js
  5. 適配valine 1.4.5以上版本

    valine:
      enable: false # if you want use valine,please set this value is true
      appId: # leancloud application app id
      appKey: # leancloud application app key
      notify: false # valine mail notify (true/false) Deprecated in v1.4.0+
      verify: false # valine verify code (true/false) Deprecated in v1.4.0+
      pageSize: 10 # comment list page size
      avatar: monsterid # gravatar style https://valine.js.org/#/avatar
      lang: en # i18n: zh-CN/zh-TW/en/ja
      placeholder: Please leave your footprints # valine comment input placeholder(like: Please leave your footprints )
      guest_info: nick,mail,link #valine comment header info
      recordIP: false # Record reviewer IP
      serverURLs: # This configuration is suitable for domestic custom domain name users, overseas version will be automatically detected (no need to manually fill in)
    +  emojiCDN: # emoji CDN
    +  enableQQ: false # enable the Nickname box to automatically get QQ Nickname and QQ Avatar
    +  requiredFields: nick,mail # required fields nick/mail/link
      bg: /img/comment_bg.png # valine background
      count: false # dispaly comment count in top_img
  6. 移除對文章隱藏的支持

Feature

  1. 增加標籤外掛 tag-toggle
  2. 適配hexo-generator-indexed插件
  3. Dark mode和Read mode配色微調
  4. 增加頁面keywords設置 #191
  5. algolia-search highlight文字加深
  6. 調整子目錄的排版(向左對齊)
  7. 調整aside和mobile sidebar 網頁資訊佈局,當缺少一個時,寬度依舊平分
  8. sidebar menu 增加頭像轉圈hover
  9. 當沒有設置Description時,會自動讀取文章前200個文字作為meta Description
  10. meta增加article:published_time和article:modified_time
  11. subtitle修改為網頁加載完後再加載,防止API回應過慢而阻礙網頁顯示
  12. 移除subtitle金山詞霸每日一句,增加搏天API的隨機語錄
  13. 本地搜索支持顯示文章內容和高亮keyword
  14. Read mode下可以切換Dark mode和Light mode
  15. 高分辨率下的界面適配 #163
  16. 修復Dark Mode下,note標簽的顯示bug
  17. 添加 dns_prefetch

Fixed

  1. 修復 articleSort 設置文章封面邏輯不一致的問題 #194
  2. 修正zh-TW部分用語
  3. 修復hide-block 配置顏色顯示出錯的bug
  4. 修復只能點擊子目錄文字才能跳轉的bug
  5. 修復搜索結果在手機端無法滾動的bug
  6. 修復aside categories 查看更多跳轉到tags頁面的bug #188
  7. 修復當flink.yml內容為空時,報錯的bug
  8. 修復Dark mode下 aside 查看更多文字顏色太淺的bug
  9. 修復POST-META關閉閲讀分鐘和訪問量後,評論量前有分割線的bug
  10. 修復canvas_ribbon透明度變為1再變回預設值bug
  11. 修復當default_cover沒設置時,會出現無圖片的bug
  12. 修復文章頁替換url hash值而導致歷史記錄過多的問題
  13. 修復DarkMode下,note標簽的顯示bug

2.2.5

27 Mar 19:32
Compare
Choose a tag to compare

Breaking Change

  1. 增加自動廣告位置

       +ad:
       +  index:
       +  aside:
       +  post:
  2. 增加圖片Figcaption顯示

    +photofigcaption: false
  3. 增加全站總字數顯示,可配置是否關閉wordcout閲讀時間/字數統計/全站總字數

    wordcount:
      enable: false
    +  post_wordcount: true
    +  min2read: true
    +  total_wordcount: true
    

Feature

  1. 文章頁上滑出現的頂欄顯示目錄 #132
  2. 全站post-meta增加提示文本(Tooltip Text)
  3. 調整文章頁post-meta和主頁post-meta的間距
  4. 文章頁,當設置只顯示一個日期時,增加文字顯示

Fixed

  1. 修復lazyload中,img標籤的class在src後面時,導致替換出錯的bug
  2. 修復複製版權信息url為undefined的bug #177
  3. 修復aside 的 “查看更多” 不居中的bug
  4. 修復highlight_shrink設為false時,js報錯的bug
  5. 修復highlight_shrink設為true,點擊無反應,沒有打開代碼框的bug
  6. Darkmode下,出現切換按鈕icon沒有改變的bug
  7. 修復簡繁轉換無效的bug
  8. 修復首頁文章日期顯示錯誤的bug
  9. 修復因註釋掉豆瓣設置導致報Cannot read property 'meta' of undefined的bug
  10. 修復Gitalk報Error: Cannot read property 'repository' of undefined 的bug
  11. 修復評論utterances 在display_mode設置為dark時,仍顯示light主題的bug
  12. 修復display_mode設置dark沒有效果的bug
  13. 評論增加夜間模式、文章頁判斷,減少不必要的js加載