Skip to content

v2.0.0-rc.0

Compare
Choose a tag to compare
@liuyib liuyib released this 31 Mar 14:46
· 137 commits to master since this release

💥 Breaking Changes

In theme's _config.yml:

+  canonical: true

  menu:
-   home: / || home
+   home: / || fas fa-home
-   archives: /archives/ || folder-open
+   archives: /archives/ || fas fa-folder-open
-   # categories: /categories/ || th
+   # categories: /categories/ || fas fa-layer-group
-   # tags: /tags/ || tags
+   # tags: /tags/ || fas fa-tags
-   # xxx: javascript:; || xxx
+   # xxx1: javascript:; || fa(s|r|l|d|b) fa-xxx

  submenu:
    # xxx:
-   #   xx1: /xxx/ || xxx
+   #   xxx1-1: /xxx1-1/ || fa(s|r|l|d|b) fa-xxx
-   #   xx2: /xxx/ || xxx
+   #   xxx1-2: /xxx1-2/ || fa(s|r|l|d|b) fa-xxx

  social:
-   github: https://github.com/ || github
+   github: https://github.com/ || fab fa-github
-   google: https://plus.google.com/ || google
+   google: https://plus.google.com/ || fab fa-google
-   # twitter: https://twitter.com/ || twitter
+   twitter: https://twitter.com/ || fab fa-twitter
-   # youtube: https://youtube.com/ || youtube
+   youtube: https://youtube.com/ || fab fa-youtube
-   # weibo: https://weibo.com/ || weibo
+   # weibo: https://weibo.com/ || fab fa-weibo
-   # wechat: yournumber || weixin
+   # wechat: yournumber || fab fa-weixin
-   # telegram: yournumber || telegram
+   # telegram: yournumber || fab fa-telegram
-   # qq: yournumber || qq
+   # qq: yournumber || fab fa-qq

  author:
    avatar:
-     url: /images/avatar.png
+     url: /images/icons/stun-logo.svg

  header:
    scroll_down_icon:
+     name: fas fa-angle-down

  body:
    mask:
-     enable: true
+     enable: false

  footer:
    icon:
-     name: heart
+     name: fas fa-heart

  post_meta:
    created:
-     icon: calendar-o
+     icon: far fa-calendar-plus
    updated:
-     icon: calendar-check-o
+     icon: far fa-calendar-check
    reading_time:
-     icon: clock-o
+     icon: far fa-clock
    word_count:
-     icon: file-word-o
+     icon: far fa-file-word

  stick_top:
-   icon: thumb-tack
+   icon: fas fa-thumbtack

  back2top:
    icon:
-     name: rocket
+     name: fas fa-rocket

  busuanzi:
    site_uv:
-     icon: user
+     icon: fas fa-user
    site_pv:
-     icon: eye
+     icon: fas fa-eye
    post_pv:
-     icon: eye
+     icon: fas fa-eye

- auto_excerpt:
-   enable: false
-   length: 150

  external_link:
    icon:
-     name: external-link
+     name: fas fa-external-link-alt

  zoom_image:
+   gap_aside: 20px

  pjax:
-   scrollTo2screen: false
+   avoid_banner: false

- fa_prefix: fa
+ icon:
+   search: fas fa-search
+   localsearch_empty: far fa-meh
+   menu_btn: fas fa-bars
+   feed_email: fas fa-envelope
+   feed_rss: fas fa-rss
+   paginator_prev: fas fa-angle-left
+   paginator_next: fas fa-angle-right
+   read_more_btn: fas fa-long-arrow-alt-right
+   post_tags: fas fa-tag
+   copy_btn: fas fa-copy
+   prompt_success: fas fa-check-circle
+   prompt_info: fas fa-arrow-circle-right
+   prompt_warning: fas fa-exclamation-circle
+   prompt_error: fas fa-times-circle
+   valine_visitor: fas fa-eye
+   post_heading: fas fa-link
+   notetag_default: fas fa-arrow-circle-right
+   notetag_success: fas fa-check-circle
+   notetag_info: fas fa-info-circle
+   notetag_warning: fas fa-exclamation-circle
+   notetag_danger: fas fa-minus-circle

🌟 Features

  • Add 'title' attribute to friends plugin (eed8fe9)

    When the text overflows, preview the entire content.

  • Add 'info' note plugin & make icon of note plugin configurable (2fab025)

  • Add gap configuration item to zoom-image (aa918d3)
  • Use fontawesome5.x and support setting all icons (d585a71)
  • Add open graph (2a8205f)
  • Support inline image (8276875)

    See: Stun docs: Set picture. By default, the image is shown in a single line and centered.

  • Add canonical setting (bf997d6)

    See: Canonical link element

🐛 Bug Fixes

  • Search box is forbidden in iOS (094a74d)

    See: Caniuse user-select-none
    Canonical link element

  • #43: Footer bar is not show when enable body bg_image (f0e92ae), closes #43
  • Toc highlighting is incorrect (a314dc0)
  • Hotkey of switching post is invalid (e77f00b)
  • Social link icon not show normally when overflow (3f3dd57)
  • Set layout.content option, some pixels less actually (1d931f4)
  • Duplicated count for busuanzi (8198d5a)

下面是中文翻译:

💥 破坏性更改

在主题的 _config.yml 文件中:

+  canonical: true

  menu:
-   home: / || home
+   home: / || fas fa-home
-   archives: /archives/ || folder-open
+   archives: /archives/ || fas fa-folder-open
-   # categories: /categories/ || th
+   # categories: /categories/ || fas fa-layer-group
-   # tags: /tags/ || tags
+   # tags: /tags/ || fas fa-tags
-   # xxx: javascript:; || xxx
+   # xxx1: javascript:; || fa(s|r|l|d|b) fa-xxx

  submenu:
    # xxx:
-   #   xx1: /xxx/ || xxx
+   #   xxx1-1: /xxx1-1/ || fa(s|r|l|d|b) fa-xxx
-   #   xx2: /xxx/ || xxx
+   #   xxx1-2: /xxx1-2/ || fa(s|r|l|d|b) fa-xxx

  social:
-   github: https://github.com/ || github
+   github: https://github.com/ || fab fa-github
-   google: https://plus.google.com/ || google
+   google: https://plus.google.com/ || fab fa-google
-   # twitter: https://twitter.com/ || twitter
+   twitter: https://twitter.com/ || fab fa-twitter
-   # youtube: https://youtube.com/ || youtube
+   youtube: https://youtube.com/ || fab fa-youtube
-   # weibo: https://weibo.com/ || weibo
+   # weibo: https://weibo.com/ || fab fa-weibo
-   # wechat: yournumber || weixin
+   # wechat: yournumber || fab fa-weixin
-   # telegram: yournumber || telegram
+   # telegram: yournumber || fab fa-telegram
-   # qq: yournumber || qq
+   # qq: yournumber || fab fa-qq

  author:
    avatar:
-     url: /images/avatar.png
+     url: /images/icons/stun-logo.svg

  header:
    scroll_down_icon:
+     name: fas fa-angle-down

  body:
    mask:
-     enable: true
+     enable: false

  footer:
    icon:
-     name: heart
+     name: fas fa-heart

  post_meta:
    created:
-     icon: calendar-o
+     icon: far fa-calendar-plus
    updated:
-     icon: calendar-check-o
+     icon: far fa-calendar-check
    reading_time:
-     icon: clock-o
+     icon: far fa-clock
    word_count:
-     icon: file-word-o
+     icon: far fa-file-word

  stick_top:
-   icon: thumb-tack
+   icon: fas fa-thumbtack

  back2top:
    icon:
-     name: rocket
+     name: fas fa-rocket

  busuanzi:
    site_uv:
-     icon: user
+     icon: fas fa-user
    site_pv:
-     icon: eye
+     icon: fas fa-eye
    post_pv:
-     icon: eye
+     icon: fas fa-eye

- auto_excerpt:
-   enable: false
-   length: 150

  external_link:
    icon:
-     name: external-link
+     name: fas fa-external-link-alt

  zoom_image:
+   gap_aside: 20px

  pjax:
-   scrollTo2screen: false
+   avoid_banner: false

- fa_prefix: fa
+ icon:
+   search: fas fa-search
+   localsearch_empty: far fa-meh
+   menu_btn: fas fa-bars
+   feed_email: fas fa-envelope
+   feed_rss: fas fa-rss
+   paginator_prev: fas fa-angle-left
+   paginator_next: fas fa-angle-right
+   read_more_btn: fas fa-long-arrow-alt-right
+   post_tags: fas fa-tag
+   copy_btn: fas fa-copy
+   prompt_success: fas fa-check-circle
+   prompt_info: fas fa-arrow-circle-right
+   prompt_warning: fas fa-exclamation-circle
+   prompt_error: fas fa-times-circle
+   valine_visitor: fas fa-eye
+   post_heading: fas fa-link
+   notetag_default: fas fa-arrow-circle-right
+   notetag_success: fas fa-check-circle
+   notetag_info: fas fa-info-circle
+   notetag_warning: fas fa-exclamation-circle
+   notetag_danger: fas fa-minus-circle

🌟 新功能

  • 给 friends 标签插件添加 title 属性 (eed8fe9)

    当文字信息溢出时,来预览全部内容。

  • 新增 info 类型的 note 标签插件,并使 note 标签插件的 icon 可配置 (2fab025)

  • 添加 zoom_image.gap_aside 配置项 (aa918d3)
  • 升级到 Font Awesome 5.x 并支持配置所有 icon (d585a71)
  • 添加 open graph (2a8205f)
  • 支持显示行内图片 (8276875)

    使用方法见:Stun 文档: 设置图片。默认情况下,图片独占一行并居中显示。

  • 添加 <link rel="canonical" /> 的配置项 (bf997d6)

    详见:Canonical link element

🐛 问题修复

  • 在 iOS 中,搜索框无法聚焦 (094a74d)

    详见:Caniuse user-select-none
    Canonical link element

  • #43: 当启用 body 元素上的背景图片时,底部栏被覆盖 (f0e92ae), 关闭了 #43
  • 文章目录的项高亮显示不正确 (a314dc0)
  • 切换文章的快捷键未生效 (e77f00b)
  • 当社交链接中的内容溢出时,显示不正常 (3f3dd57)
  • 设置了 layout.content 选项时,实际效果会少一些距离 (1d931f4)
  • 卜算子统计重复计数 (8198d5a)