Skip to content

v1.6.0

Compare
Choose a tag to compare
@liuyib liuyib released this 15 Jan 09:27
· 227 commits to master since this release

💥 Breaking Changes

In theme's _config.yml:

+ night_mode:
+   enable: true
+   button:
+     color: '#fafafa'
+     bg_color: '#8c8a8a'
+   icon:
+     dark: 🌜
+     light: 🌞

+ layout:
+   content: 768px
+   sidebar: 300px
+   content_sidebar_gap: 30px
+   main_side_gap: 20px

  sidebar:
-   width: 300px

- highlight_theme: light
- code_word_wrap: false

+ codeblock:
+   style: default
+   highlight: light
+   word_wrap: false

🌟 Features

  • Add support for 'reward' of front-matter in pages other than posts (63c1473)
  • Add support for utterances comments (559fab5)
  • Add the button of night mode (5608830)
  • Make the layout of sidebar and content configurable (308e90b)
  • Add three styles of code block to choose from (ac44aee)

🐛 Bug Fixes

  • Display the preset i18n infomation when the post has no title (22a425f)
  • Solved that click the parent element of secondary menu to jump (ae083e4)
  • Solve the problem that the menu button is not displayed (c596944)
  • Solve the problem that the menu button is not displayed(repeat) (476da68)
  • Solve the problem that the popAlert component pops up repeatedly (2ce0785)
  • Solve the problem of incorrect reading progress calculation (114268c)
  • #25: Remove cheerio (31d6356), closes #25
  • Solved that the secondary menu not display in some cases (5f904fc)
  • Solved the problem that modifying the theme of code block not work (fc39088)
  • Solved that friends plugin not show normally when lazyload enabled (63f19fe)

下面是中文翻译:

💥 破坏性更改

在主题的 _config.yml 文件中:

+ night_mode:
+   enable: true
+   button:
+     color: '#fafafa'
+     bg_color: '#8c8a8a'
+   icon:
+     dark: 🌜
+     light: 🌞

+ layout:
+   content: 768px
+   sidebar: 300px
+   content_sidebar_gap: 30px
+   main_side_gap: 20px

  sidebar:
-   width: 300px

- highlight_theme: light
- code_word_wrap: false

+ codeblock:
+   style: default
+   highlight: light
+   word_wrap: false

🌟 新功能

  • 除了文章页面以外的页面,也添加对 Front-Matter 的 'reward' 属性的支持 (63c1473)
  • 添加对 utterances 评论系统的支持 (559fab5)
  • 添加夜间模式的功能 (5608830)
  • 使得 sidebar 和 内容区域的宽度可以配置 (308e90b)
  • 提供三种代码块样式可供选择 (ac44aee)

🐛 问题修复

  • 在没有标题的文章页面中,使用预设的 i18n 文本作为网站 title (22a425f)
  • 解决了点击二级菜单的父元素跳转到空白页的问题 (ae083e4)
  • 解决菜单按钮在一些情况下不显示的问题 (c596944)
  • 解决菜单按钮在一些情况下不显示的问题(重复修复 bug) (476da68)
  • 解决 popAlert 组件重复弹出的问题 (2ce0785)
  • 解决文章阅读进度条数值计算错误的问题 (114268c)
  • #25: 移除 cheerio 依赖 (31d6356), 修复了 #25
  • 解决二级菜单在一些情况下不显示的问题 (5f904fc)
  • 解决了修改代码块高亮颜色后不生效的问题(修复其他 bug 时引入的 bug)(fc39088)
  • 解决当启用 lazyload 时,friends 标签插件不能正常显示的问题(修复其他 bug 时引入的 bug)(63f19fe)