Skip to content

3.2.0

Compare
Choose a tag to compare
@jerryc127 jerryc127 released this 28 Sep 14:06
· 289 commits to dev since this release

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