Skip to content

v1.7.0

Compare
Choose a tag to compare
@liuyib liuyib released this 06 Feb 08:57
· 188 commits to master since this release

💥 Breaking Changes

In theme's _config.yml:

+ sougou_site_verification:

  layout:
-   main_side_gap: 20px
+   main_padding:
+     default: 20px
+     tablet: 15px
+     mobile: 10px

  header:
+   enable: true
+   show_on:
+     post: true

-   nav_height: 50px
+   nav:
+     height: 50px
+     bg_color: "#333"

+ body:
+   bg_image:
+     enable: false
+     url:
+     fixed: true
+     repeat: false
+   mask:
+     enable: true
+     opacity:
+       default: 0.1
+       night_mode: 0.6

  sidebar:
-   offsetTop: 30px
+   offsetTop: 20px

  toc:
-   number: true
+   list_number: true

+   min_depth: 1
-   max_depth: 6
+   max_depth: 4

  post_widget:
+   share:
+     enable: false
+     label: "Share to: "
+     target: qzone, qq, weibo, wechat, douban, linkedin, facebook, twitter, google

  cdn:
+   share_js:
+   share_css:

🌟 Features

  • Add min_depth option to toc (89bb869)

      toc:
    +   min_depth: 1

    You can use toc_min_depth of Front-Matter in article to cover it.

  • Set more configuration items for the layout (3a9ad3f)

  • Make the background image of body configurable (18b74c5)

  • Make the display of website header configurable (a167675)

  • Add sougou webmaster tools (0ce3569)

  • Add article sharing (c5e640e)

🐛 Bug Fixes

  • Nightmode not blur when click document (2c8466e)
  • Animation of scroll icon doesn't work in iOS (21f87ac)
  • Article header overlay submenu (0162383)
  • Compatible with pjax when header are not enabled (8302d30)
  • Submenu is not hidden after the mouse passes over it (576f177)
  • Solved that click the parent element of secondary menu to jump (a21e296)
  • #28: Solve heading parsing error (8a9ca01), closes #28
  • Long link overflow and set the min-width for table items (0ef6fe0)
  • Valine is not reload when switching pages by pjax (a750791)

下面是中文翻译:

💥 破坏性更改

在主题的 _config.yml 文件中:

+ sougou_site_verification:

  layout:
-   main_side_gap: 20px
+   main_padding:
+     default: 20px
+     tablet: 15px
+     mobile: 10px

  header:
+   enable: true
+   show_on:
+     post: true

-   nav_height: 50px
+   nav:
+     height: 50px
+     bg_color: "#333"

+ body:
+   bg_image:
+     enable: false
+     url:
+     fixed: true
+     repeat: false
+   mask:
+     enable: true
+     opacity:
+       default: 0.1
+       night_mode: 0.6

  sidebar:
-   offsetTop: 30px
+   offsetTop: 20px

  toc:
-   number: true
+   list_number: true

+   min_depth: 1
-   max_depth: 6
+   max_depth: 4

  post_widget:
+   share:
+     enable: false
+     label: "Share to: "
+     target: qzone, qq, weibo, wechat, douban, linkedin, facebook, twitter, google

  cdn:
+   share_js:
+   share_css:

🌟 新功能

  • 给文章目录添加 min_depth 配置项 (89bb869)

      toc:
    +   min_depth: 1

    你可以在文章的 Front-Matter 中,使用 toc_min_depth 属性覆盖该配置。

  • 添加对布局的更多配置项 (3a9ad3f)

  • 使 body 背景图片可配置 (18b74c5)

  • 使网站 header 是否显示可配置 (a167675)

  • 添加搜狗站长管理工具 (0ce3569)

  • 添加文章分享 (c5e640e)

🐛 问题修复

  • 点击页面时,夜晚模式按钮不失焦 (2c8466e)
  • 在 iOS 中,下拉提示按钮显示不正常 (21f87ac)
  • 二级菜单被文章头部的信息覆盖 (0162383)
  • 当设置 header 不显示时,对 pjax 的兼容 (8302d30)
  • 鼠标经过二级菜单后,不隐藏的问题 (576f177)
  • 点击二级菜单父元素跳转空白页面 (a21e296)
  • #28: 文章标题解析错误 (8a9ca01), closes #28
  • 过长的链接溢出文档 (0ef6fe0)
  • 通过 pjax 切换页面时,valine 评论不会重新加载的问题 (a750791)