Ryan Wang
7e103ff3c0
Optimize settings form and remove deprecated options ( #256 )
...
* Optimize settings form and remove deprecated options
* Update required version to 2.22.0 in theme.yaml
The minimum required version for this theme has been updated from 2.20.0 to 2.22.0 to ensure compatibility with newer dependencies or features.
* Update icon rendering to use icon.value property
2025-12-24 12:09:28 +08:00
Anye
78ea35d202
Add number formatter web component to profile stats ( #242 )
...
在个人资料模块中,使用自定义元素 `<number-formatter>` 来格式化显示的数字,使其更易读。该组件将大数字转换为简写形式(如 1K, 1M, 1B),提升用户体验。
```release-note
优化个人资料小部件的数值显示
```
2025-11-06 14:44:29 +00:00
Ryan Wang
96509b49cc
Adjust bottom margin of tag list on post page ( #252 )
...
before:
<img width="760" height="278" alt="image" src="https://github.com/user-attachments/assets/9c94afe8-b9ea-4408-931d-8cd5e29ec9f0 " />
after:
<img width="766" height="290" alt="image" src="https://github.com/user-attachments/assets/f61daf02-0400-41c2-b0cb-de73934012c2 " />
```release-note
调整文章页面标签列表的下边距,以更好的适应内容。
```
2025-09-04 13:19:33 +00:00
Ryan Wang
bd11cc6c0d
Fix inaccessible /categories and /tags routes ( #251 )
...
Signed-off-by: Ryan Wang <i@ryanc.cc >
2025-08-06 18:27:29 +08:00
Anye
eb209f3155
Refactor paginations
...
为了提升代码的可维护性和一致性,将 tags.html、categories.html 和 archives.html 中的自定义分页逻辑替换为统一的分页模块。这样可以减少重复代码,并简化未来的维护工作。
2025-08-04 14:20:54 +08:00
Ryan Wang
d56c61a046
Add supports for docsme plugin ( #250 )
...
* docsme
Signed-off-by: Ryan Wang <i@ryanc.cc >
* Update
Signed-off-by: Ryan Wang <i@ryanc.cc >
* Add setting options
Signed-off-by: Ryan Wang <i@ryanc.cc >
---------
Signed-off-by: Ryan Wang <i@ryanc.cc >
2025-08-04 14:18:36 +08:00
虚空云馆
04ae86464d
fix: add null check for pagination element before adding event listener ( #234 )
...

```release-note
修复在 pagination 不存在时添加事件监听器的问题
```
2025-01-06 09:58:22 +00:00
虚空云馆
80b91a5cdf
fix: resolve redundant github css loading on singlePage ( #231 )
...
```release-note
解决单页面冗余加载 github-markdown.css 的问题
```
2024-12-27 03:49:02 +00:00
Ryan Wang
c00c3e9457
fix: correct post count display in categories ( #224 )
...
修复分类下文章数量显示不正确的问题。
See https://github.com/halo-dev/halo/issues/7095
/kind bug
```release-note
修复分类下文章数量显示不正确的问题。
```
2024-12-04 07:07:09 +00:00
Anye
f5d2d75616
fix: update subtitle opacity for better visibility in hero module ( #221 )
...
fix: update subtitle opacity for better visibility in hero module, close #129
```release-note
修复首页副标题显示不明显的问题。
```
2024-11-22 02:32:11 +00:00
Anye
df35d55c4f
fix: add styling to pagination dropdown options ( #222 )
...
```release-note
添加底部分页选择的背景颜色。
```
2024-11-21 04:28:09 +00:00
Ryan Wang
2a750e0bf0
refactor: improve color scheme switcher ( #218 )
2024-11-18 17:35:46 +08:00
Ryan Wang
1949a1ed1c
fix: improve category filter accessibility on mobile devices ( #217 )
2024-11-18 17:19:41 +08:00
Ryan Wang
f024c9cd54
feat: add categories template ( #216 )
...
添加 /categories 模板。
/kind feature
Fixes https://github.com/halo-dev/theme-earth/issues/121
```release-note
添加 /categories 模板。
```
2024-11-18 07:06:03 +00:00
Ryan Wang
7841b6c880
feat: add logo type setting option ( #215 )
2024-11-18 14:53:15 +08:00
Ryan Wang
03dc038eb7
feat: add i18n supports ( #214 )
...
添加界面的 i18n 支持。
/kind feature
Fixes https://github.com/halo-dev/theme-earth/issues/198
Fixes https://github.com/halo-dev/theme-earth/issues/75
```release-note
添加界面的 i18n 支持。
```
2024-11-18 03:08:03 +00:00
Ryan Wang
235c2c20ef
fix: resolve CLS issues in page layout ( #209 )
...
Signed-off-by: Ryan Wang <i@ryanc.cc >
2024-11-17 13:25:11 +08:00
Ryan Wang
17d15c7c60
fix: missing post count display in category listing ( #212 )
...
Signed-off-by: Ryan Wang <i@ryanc.cc >
2024-11-16 11:09:55 +08:00
Ryan Wang
6b3dc79b37
feat: add setting option for post title position ( #213 )
...
Signed-off-by: Ryan Wang <i@ryanc.cc >
2024-11-16 11:08:58 +08:00
Ryan Wang
4d8475cfc0
refactor: improve posts pagination with direct page navigation ( #210 )
...
Signed-off-by: Ryan Wang <i@ryanc.cc >
2024-11-16 10:13:31 +08:00
Ryan Wang
43616aff40
fix: resolve sorting issue in popular posts widget ( #208 )
...
Signed-off-by: Ryan Wang <i@ryanc.cc >
2024-11-15 21:31:08 +08:00
Ryan Wang
75731b7ba8
fix: add target attribute to footer menu links ( #206 )
2024-11-15 13:58:14 +08:00
Ryan Wang
33c033fb5a
feat: add preload tag for logo image ( #207 )
2024-11-15 13:58:03 +08:00
Ryan Wang
20e244f43a
feat: support dynamic html language attribute ( #200 )
...
支持动态设置 HTML 的 lang 属性。
<img width="884" alt="image" src="https://github.com/user-attachments/assets/a6b56278-937a-4862-9292-589330a2b02a ">
<img width="924" alt="image" src="https://github.com/user-attachments/assets/a7a2159c-4b97-43dc-9fdb-9e60dd3aa628 ">
BTW,这个改动只是暂时这样做,因为这个 lang 属性的定义可能是 publisher language,而不是根据用户访问的语言来确定,比如一个完全是中文内容的网站,如果设置为了 en,那么部分字符可能发生改变。不过 Halo 暂时没有设置发布语言的设置项,所以暂时这样做问题也不大。
/kind feature
```release-note
支持动态设置 HTML 的 lang 属性。
```
2024-10-28 04:42:03 +00:00
Anye
a6a68dade6
Fix the problem of not displaying while configuring ICP only ( #196 )
...
```release-note
修复只填写了 ICP 备案号时不显示的问题
```
2024-10-24 02:23:49 +00:00
Anye
e9c87292f8
feat: refine dark mode for menu divider ( #191 )
...
为菜单子目录添加 `dark:divide-slate-600`,使其在暗色模式下表现正常
```release-note
None
```
2024-10-14 04:03:17 +00:00
BugKing
f1417cb266
refactor: redirect to current url after login ( #189 )
...
登录后 redirect_uri 改为当前所在路径
2024-10-14 12:01:53 +08:00
Ryan Wang
ea43d6fcfe
refactor: change login url ( #188 )
...
Halo 2.20 将提供新的登录入口(/login),此 PR 用于适配新的登录地址。
See more: https://github.com/halo-dev/halo/pull/6488
/kind improvement
```release-note
适配 Halo 2.20 的新登录入口。
```
2024-10-12 03:31:09 +00:00
Ryan Wang
140612c8d5
refactor: simplify the setting form ( #184 )
...
简化设置表单的部分选项,并提供旧数据的兼容。
before:
<img width="627" alt="image" src="https://github.com/user-attachments/assets/511da020-faed-43bb-95b7-2dcc17dfe90d ">
<img width="562" alt="image" src="https://github.com/user-attachments/assets/08f7cd4b-ec85-4157-9c2a-5aa7384aa1ab ">
after:
<img width="562" alt="image" src="https://github.com/user-attachments/assets/360462e2-35b7-4de6-8435-05a324dbb5d3 ">
<img width="561" alt="image" src="https://github.com/user-attachments/assets/e4fc8876-9152-424c-b49c-c438f20a0403 ">
```release-note
简化设置表单的部分选项
```
2024-09-13 08:20:26 +00:00
Meng Sen
36b66a448a
feat: add comment widget supports for links page ( #183 )
...
Fixes https://github.com/halo-dev/theme-earth/issues/182
```release-note
链接页面支持显示评论区
```
2024-09-09 09:56:04 +00:00
Ryan Wang
33b7b41f09
refactor: add permission check for post edit button ( #180 )
...
为文章页面的编辑按钮添加权限判断。
<img width="419" alt="image" src="https://github.com/user-attachments/assets/99a02618-181f-494e-9d54-61ad1d34f9d0 ">
```release-note
为文章页面的编辑按钮添加权限判断。
```
2024-09-05 08:57:47 +00:00
Ryan Wang
65fbbee91d
feat: add supports for responsive image ( #172 )
...
适配 Halo 2.19,支持响应式图片。
/kind feature
```release-note
适配 Halo 2.19,支持响应式图片。
```
2024-09-04 06:25:44 +00:00
Anye
118d19eae9
feat: improve accessibility of scroll-to-top button ( #179 )
...
添加回到顶部按钮的aria-label值,提高无障碍评分
```release-note
None
```
2024-09-04 06:05:43 +00:00
Anye
fb961e7bd4
refactor: add condition for icp config ( #176 )
...
```release-note
None
```
2024-09-04 02:27:43 +00:00
Anye
c072ac785b
refactor: optimize post edit button position ( #177 )
...
```release-note
优化文章编辑按钮,防止与滚动到顶部按钮重叠。
```
2024-09-04 02:23:42 +00:00
Ryan Wang
cdc5375ce5
fix: resolve issue with footer menu items not displaying ( #169 )
...
Resolve issue with footer menu items not displaying
/kind bug
Fixes #168
```release-note
修复页脚菜单项名称可能不显示的问题。
```
2024-08-29 03:17:23 +00:00
Ryan Wang
0cf51c3148
feat: add support for hiding upvote and share buttons on posts ( #165 )
...
支持隐藏文章的点赞和分享按钮。
/kind feature
Fixes https://github.com/halo-dev/theme-earth/issues/158
```release-note
支持隐藏文章的点赞和分享按钮。
```
2024-08-26 06:49:13 +00:00
Ryan Wang
f43a011527
feat: add color customization for hero section title on homepage ( #163 )
...
支持为首页 hero 部分的标题文字设置颜色,以适应背景图片。
/kind feature
Fixes https://github.com/halo-dev/theme-earth/issues/147
Fixes https://github.com/halo-dev/theme-earth/issues/136
```release-note
支持为首页 hero 部分的标题文字设置颜色,以适应背景图片。
```
2024-08-26 06:31:14 +00:00
Ryan Wang
0ff535f517
fix: resolve link display issue in share modal ( #164 )
...
修复分享弹窗中链接过长导致的样式问题。
Fixes https://github.com/halo-dev/theme-earth/issues/141
<img width="609" alt="image" src="https://github.com/user-attachments/assets/e835a037-fff9-47e0-8374-667afe2a7c74 ">
/kind bug
```release-note
修复分享弹窗中链接过长导致的样式问题。
```
2024-08-26 05:51:13 +00:00
Ryan Wang
50b027acb0
feat: add scroll to top button ( #161 )
...
* feat: add scroll to top button
Signed-off-by: Ryan Wang <i@ryanc.cc >
* Format code
Signed-off-by: Ryan Wang <i@ryanc.cc >
---------
Signed-off-by: Ryan Wang <i@ryanc.cc >
2024-08-22 15:40:11 +08:00
Ryan Wang
a31db0ee86
refactor: logout ( #159 )
...
```release-note
修改退出登录的操作方式。
```
2024-08-22 06:56:54 +00:00
HowieHz
175c40e230
chore: fix unavailable prettier task config ( #148 )
...
这个pr修复了不可用的 prettier 脚本
顺便跑了一遍 prettier
https://github.com/guqing/halo-theme-higan/pull/91#issuecomment-2058935471
```release-note
None
```
2024-08-22 03:46:54 +00:00
Anye
0d1176a573
fix: fix sidebar content scrolling issue in article table of contents ( #156 )
...
修复文章侧边栏中目录移动问题
```release-note
None
```
2024-07-27 03:35:42 +00:00
Ryan Wang
ed652815b9
refactor: improve ui ( #153 )
...
优化整体的 UI 和布局。
```release-note
None
```
2024-07-08 09:05:23 +00:00
Ryan Wang
69d2b47416
fix: background color issue ( #140 )
...
修复使用 GitHub 风格的文章样式时,文章内容背景颜色在暗色下的样式问题。
/kind bug
before:
<img width="476" alt="image" src="https://github.com/halo-dev/theme-earth/assets/21301288/74a1e3a6-d74b-4067-938c-92109a025b48 ">
after:
<img width="487" alt="image" src="https://github.com/halo-dev/theme-earth/assets/21301288/51db65b0-60e4-40a2-9dc7-b65ee5d353dc ">
```release-note
None
```
2024-04-15 07:20:09 +00:00
Ryan Wang
bcf874c09e
feat: add support for image formats to social media settings ( #139 )
...
侧边站点资料卡片的社交媒体支持图片形式的打开方式。
/kind feature
Fixes #133
<img width="466" alt="image" src="https://github.com/halo-dev/theme-earth/assets/21301288/20a747b1-d423-4ccc-946a-80054bc9f158 ">
<img width="1008" alt="image" src="https://github.com/halo-dev/theme-earth/assets/21301288/ae5b0730-16d7-4d28-a88f-d643aa811591 ">
```release-note
侧边站点资料卡片的社交媒体支持图片形式的打开方式。
```
2024-04-15 06:52:10 +00:00
Ryan Wang
d4562c38de
chore: bump dependencies ( #138 )
...
升级所有依赖的版本,并简化部分 TailwindCSS 的写法。
/kind improvement
```release-note
None
```
2024-04-11 16:10:11 +00:00
Ryan Wang
42a2546b6b
chore: cleanup inject code of comment widget ( #137 )
...
移除评论组件代码注入的 colorScheme 参数,在最新的评论插件中,已经可以通过 css 变量来控制配色,所以此参数不再有效。
/kind cleanup
```release-note
None
```
2024-04-11 10:24:11 +00:00
Anye
44427b8f17
feat: improve accessibility of profile widget ( #131 )
...
添加aria-label字段,提高Accessibility评分
```release-note
None
```
2024-04-11 08:22:10 +00:00
Ryan Wang
3008666add
feat: add a new post content styles ( #132 )
...
添加新的内容渲染样式。https://github.com/sindresorhus/github-markdown-css
<img width="1031" alt="图片" src="https://github.com/halo-dev/theme-earth/assets/21301288/a9a59389-3fd9-4675-861c-54d5021391ac ">
Fixes https://github.com/halo-dev/theme-earth/issues/42
/kind feature
```release-note
添加新的内容渲染样式
```
2024-01-02 09:38:13 +00:00