Skip to content

1.8.14

Compare
Choose a tag to compare
@zkqiang zkqiang released this 31 Dec 08:32
· 199 commits to master since this release

⚠️公告

对于正在使用 MathJax 的老用户,建议将原 kramed 渲染器更换为 pandoc,步骤如下:

  1. npm uninstall hexo-renderer-kramed --save
  2. npm install hexo-renderer-pandoc --save
  3. 根据操作系统安装 Pandoc

🔧 配置变更

  • hint 库(用于关于页里图标悬浮框)修改为使用公共 CDN:
static_prefix:
- hint: /lib/hint/
+ hint: https://cdn.jsdelivr.net/npm/hint.css@2/

✨ 新功能

  • 增加对滚动条颜色的配置项:
color:
+ scrollbar_color: "#c4c6c9"
+ scrollbar_color_dark: "#687582"
+ scrollbar_hover_color: "#a6a6a6"
+ scrollbar_hover_color_dark: "#9da8b3"

🎨 优化

  • TOC 增加光标样式
  • 表格适配暗色模式
  • 代码高亮适配缩进代码块
  • 固定 highlight 代码行数

🐛 修复

  • 修复上个版本中关于页头像在移动端会被隐藏的问题
  • 暂时移除代码块在暗色模式下变暗(会导致复制按钮偏移)

⚠️ Notice

For the users who are using MathJax, it is recommended to replace kramed renderer to pandoc, the steps are as follows:

  1. npm uninstall hexo-renderer-kramed --save
  2. npm install hexo- renderer-pandoc --save
  3. Install Pandoc according to your os system

🔧 Configuration

  • hint (for the icon hover in the about page) was modified to jsdelivrCDN:
static_prefix:
- hint: /lib/hint/
+ hint: https://cdn.jsdelivr.net/npm/hint.css@2/

✨ Feature

  • Add config item for scrollbar color:
color:
+ scrollbar_color: "#c4c6c9"
+ scrollbar_color_dark: "#687582"
+ scrollbar_hover_color: "#a6a6a6"
+ scrollbar_hover_color_dark: "#9da8b3"

🎨 Enhancement

  • TOC add cursor style
  • <table> is adapted to dark mode
  • Indented code block is adapted to highlight
  • Stick line-number of code

🐛 Fix

  • Fix the about avatar being hidden on mobile in the previous version
  • Temporarily remove code blocks to darken in dark mode (causes the copy button to shift)