Releases: D-Sketon/hugo-theme-reimu
Releases · D-Sketon/hugo-theme-reimu
0.5.0
What's Changed
- feat: enhance sidebar player options for aplayer by @D-Sketon in 46603a3
- feat: refine header and footer structure for improved pjax by @D-Sketon in 6a029a8
- fix: update anchor selection to use document.getElementById by @D-Sketon in ab2eb59
- feat: add support for config sidebar in front-matter by @D-Sketon in 245f887
- feat: enhance article copyright display with icons by @D-Sketon in e28ba9b
- fix: adjust article meta margin for normal media queries by @D-Sketon in 2145ed3
- feat: update reimu cursor configuration support by @D-Sketon in 8bca2d5
- feat: add share support by @D-Sketon in c628174
修复
- 修复了自定义封面时 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
Full Changelog: v0.4.0...v0.5.0
v0.4.0
What's Changed
- fix: update avatar transition by @D-Sketon in 85b8937
- feat: aplayer + metingJs by @D-Sketon in 71d2b92
- feat: allow live2d position by @D-Sketon in 7ee66bc
- feat: add support for live2d widgets by @D-Sketon in ed9427d
- feat: add top position config by @D-Sketon in e964e07
- feat: add listFolded option to aplayer config by @D-Sketon in 30d4396
修复
- 修复头像 hover 动画丢失的问题
特性
-
新增了
live2d_widgets
配置用于开启/关闭 live2d-widgetslive2d_widgets: enable: true # true | false position: left # left | right
-
为
top
和live2d
新增position
配置,用于控制其位置top: enable: true # true | false position: right # left | right live2d: enable: true # true | false position: left # left | right
-
新增
player
配置用于配置 Aplayer / Meting 音乐播放器,使用前建议打开 pjaxplayer: aplayer: enable: false options: audio: [] fixed: autoplay: loop: order: preload: volume: mutex: listFolded: meting: enable: false meting_api: # custom api options: id: server: type: auto:
Full Changelog: v0.3.0...v0.4.0
v0.3.0
v0.2.0
What's Changed
- feat: allow local font config by @D-Sketon in fc21fc6
- feat: code_block expand by @D-Sketon in a530a47
- fix: add missing tokens by @D-Sketon in 8caee83
- perf: treeshake social icon by @D-Sketon in 541391c
修复
- 修复了部分 css token 未统一的问题
特性
- 添加了配置用于控制代码块的默认展开状态,
expand
可以设置为true
、false
或数字,数字表示当代码块的行数大于该数字时默认收缩。code_block: expand: true # true | false | number
- 添加了
local_font
配置用于定义本机兜底字体,其优先级比谷歌字体低:local_font: article: - "-apple-system" - PingFang SC - Microsoft YaHei - sans-serif code: - Menlo - Monaco - Consolas - monospace
性能
- CSS 持续性 tree-shaking,现在
social
中只有用到的图标会被打包
Full Changelog: v0.1.0...v0.2.0
v0.1.0
What's Changed
- fix: standardize token by @D-Sketon in 42f9450
- fix: giscus dark mode toggle by @D-Sketon in 19e5618
- refactor: support custom by @D-Sketon in footer/sponsor/top icon ee03e3f
- refactor: support custom loader icon by @D-Sketon in 8e4a199
- refactor: refactor menu and support custom icon by @D-Sketon in a9af452
- refactor: support custom anchor icon by @D-Sketon in 06ac078
- refactor: mobile and search share the same mask by @D-Sketon in 52caae4
修复
- 修复了
KaTeX
带有 tag 时会有多余的滚动条的 bug - 修复了
KaTeX
带有 tag 且宽度过小时会和左侧公式重叠的 bug - 修复了
giscus
评论不会随着日夜模式切换而改变主题的 bug,现在giscus
的commentTheme
配置无效giscus: commentTheme: # 无效的配置,现在主题由 reimu 托管了
- 修复了 Github icon 在夜间模式下颜色不明显的问题
- 同步了部分 transition 动画,使得动画更加统一
重构
- 现在搜索和移动端侧边栏共用一个 mask,减少了代码量
- 统一了 css 中的 token 颜色,现在可以通过修改某些 token 实现替换主题色
- 重构了
menu
配置,现在支持自定义 iconmenu: - name: home url: / icon: # 不填默认使用太极图标 - name: archives url: /archives icon: f0c1 # 你可以填写一个十六进制的数字来自定义 icon,支持 fontawesome 和 icon font - name: about url: /about icon: - name: friend url: /friend icon:
- 重构了
footer
、top
、sponsor
配置,现在支持自定义 iconfooter: icon: url: "../images/taichi.png" # 相对于 css/style.css 的路径,所以需要向上一级才能找到 images 文件夹 rotate: true mask: true top: # 这是新增配置 enable: true # true | false icon: url: "../images/taichi.png" rotate: true mask: true sponsor: icon: url: "../images/taichi.png" rotate: true mask: true
- 重构了
preloader
配置,现在支持自定义加载动画 iconpreloader: enable: true text: 少女祈祷中... icon: # 不填默认使用内链的svg(保证首屏加载速度),你可以填入一个链接来自定义加载图标,如 '/images/taichi.png'
- 新增了
anchor_icon
配置,现在支持自定义锚点 iconanchor_icon: # 不填默认使用 # 图标
Full Changelog: v0.0.4...v0.1.0
v0.0.4
v0.0.3
What's Changed
- fix: lightbox load error by @D-Sketon in 6785fe1
- fix: fix anchor style by @D-Sketon in ae5fd47
- fix: fix algolia_logo 404 by @D-Sketon in fe8eb52
- feat: fix excerpt logic by @D-Sketon in 08bd72f
- feat: sri by @D-Sketon in 77681f1
- feat: quicklink default false by @D-Sketon in ff56062
- feat: highlight support patch by @D-Sketon in bc4cac5
- perf: lazyload comment & latex & photoswipe by @D-Sketon in c3b3b2f
修复
- 修复 photoswipe 加载异常
- 修复 achor hover 样式异常
- 修复 algolia_logo 404 异常
- 修复 excerpt 展示逻辑,现在展示逻辑与 hexo-theme-reimu 相同
特性
- 现在 quicklink 默认关闭,与 hexo-theme-reimu 同步
- 支持了 SRI
- 代码高亮支持了 patch 语言类型
性能
- photoswipe 相关 js 现在不会在 home 页面加载
- comment 相关 js 现在不会在 home 页面加载
Full Changelog: v0.0.2...v0.0.3
v0.0.2
v0.0.1
first release
Full Changelog: https://github.com/D-Sketon/hugo-theme-reimu/commits/v0.0.1