v1.3.0
修复
- 修复了自定义封面时 pjax 失效的 bug
- 修复了点击侧边栏按钮进行跳转时 pjax 失效的 bug
- 修复了当标题以数字开头时 TOC 无法正常显示的 bug
- 修正样式
特性
- 新增了
share
配置用于开启分享功能,目前支持facebook
、twitter
、linkedin
、reddit
、weibo
、qq
、weixin
。share: - facebook - twitter - linkedin - reddit - weibo - qq - weixin
weixin
状态下会生成带有二维码的分享卡片,可保存到本地后分享到微信朋友圈(注意,当文章封面存在跨域问题时无法使用 html-to-image 正确生成含图片的卡片!) - 支持在文章
front-matter
中配置sidebar
字段,用于控制文章是否显示侧边栏,优先级高于全局配置--- sidebar: left # left | right | false ---
reimu_cursor
配置结构发生变化,新增cursor
配置用于自定义鼠标路径。(仍然兼容老配置)reimu_cursor: enable: true cursor: default: ../images/cursor/reimu-cursor-default.png pointer: ../images/cursor/reimu-cursor-pointer.png text: ../images/cursor/reimu-cursor-text.png
Fixes
- Fixed bug where PJAX failed when using a custom cover.
- Fixed bug where PJAX failed when clicking sidebar buttons for navigation.
- Fixed bug where TOC didn't display correctly when the title started with a number.
- Fixed styles.
Features
-
Added
share
configuration to enable sharing functionality. Currently supportsfacebook
,twitter
,linkedin
,reddit
,weibo
,qq
, andweixin
.share: - facebook - twitter - linkedin - reddit - weibo - qq - weixin
When
weixin
is enabled, a share card with a QR code will be generated, which can be saved locally and shared to WeChat Moments. (Note: If the article cover has cross-origin issues, the HTML-to-image process might fail to generate the card with an image!) -
Added support for
sidebar
field in articlefront-matter
to control whether the sidebar is displayed for that article. This overrides global configuration.--- sidebar: left # left | right | false ---
-
The
reimu_cursor
configuration structure has changed. A newcursor
field allows for custom mouse paths. (Old configuration is still supported.)reimu_cursor: enable: true cursor: default: ../images/cursor/reimu-cursor-default.png pointer: ../images/cursor/reimu-cursor-pointer.png text: ../images/cursor/reimu-cursor-text.png
Full Changelog: v1.2.0...v1.3.0