Ryan Wang
65847cf9bf
fix: resolve CLS issues in page layout
...
Signed-off-by: Ryan Wang <i@ryanc.cc >
2024-11-15 21:21:10 +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
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
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
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
Anye
44427b8f17
feat: improve accessibility of profile widget ( #131 )
...
添加aria-label字段,提高Accessibility评分
```release-note
None
```
2024-04-11 08:22:10 +00:00
Anye
09185d145e
feat: update footer text color in dark mode ( #128 )
...
```release-note
优化页脚文字在暗色模式下的样式
```
2023-11-28 13:47:33 +00:00
Anye
2da6c3fb36
feat: update share-modal.html with dark mode styles ( #127 )
...
```release-note
优化暗色模式下的分享弹窗样式。
```
2023-11-28 13:25:32 +00:00
Anye
400adb9d03
chore: update icp link and image ( #126 )
...
更新公安备案链接及图片
```release-note
None
```
2023-11-26 02:10:07 +00:00
Anye
2d5d5d2d69
Add alt attribute to gongan_beian image ( #125 )
...
提高Accessibility
```release-note
为部分图片添加 alt 属性,提升可访问性。
```
2023-11-23 06:10:08 +00:00
Ryan Wang
8c244f9954
feat: add post share feature ( #118 )
...
为文章页面添加分享功能。
/kind feature
<img width="1920" alt="image" src="https://github.com/halo-dev/theme-earth/assets/21301288/0825f69d-f2c9-4419-98aa-f8e572b594f0 ">
```release-note
为文章页面添加分享功能。
```
2023-10-13 07:44:10 +00:00
Ryan Wang
52125399f6
fix: post cover css ( #117 )
...
修复文章封面图包含一个 * 字符的问题。
<img width="658" alt="image" src="https://github.com/halo-dev/theme-earth/assets/21301288/1a8dbce7-0dd9-42e6-a48c-1abf1cb9c410 ">
/kind bug
```release-note
修复文章封面图包含了一个 * 字符的问题。
```
2023-10-13 07:22:12 +00:00
Ryan Wang
bc9dd092a6
feat: add image support for social media ( #96 )
...
页脚社交媒体支持图片类型。
/kind feature
<img width="592" alt="image" src="https://github.com/halo-dev/theme-earth/assets/21301288/7bf77f2c-125d-4243-b38c-0e340b82df64 ">
<img width="1403" alt="image" src="https://github.com/halo-dev/theme-earth/assets/21301288/67c2c232-1130-4d4f-ae13-7b3f39af8c79 ">
Fixes #92
```release-note
页脚社交媒体支持图片类型。
```
2023-07-24 08:28:19 +00:00
Ryan Wang
2c51b701ae
refactor: refine footer layout ( #98 )
...
优化和完善页脚。
1. 为风格一添加社交媒体。 Fixes https://github.com/halo-dev/theme-earth/issues/93
2. 为风格二添加公安备案的信息。 see https://github.com/halo-dev/theme-earth/pull/97
3. 优化布局结构,优化移动端样式。 Fixes https://github.com/halo-dev/theme-earth/issues/94
/kind improvement
```release-note
None
```
2023-07-22 17:28:16 +00:00
Xue Fanyu
737467dae4
feat: add setting items for Chinese public security filing information ( #97 )
...
### 修改内容
在 #6 基础上加入了公安联网备案相关的设置项
不输入公安联网备案号时不渲染公安备案图标
### 效果图
#### 底部

#### 设置页面

```release-note
添加公安联网备案号的设置
```
2023-07-19 10:06:12 +00:00
Takagi
810cc3eff6
feat: add filters to the cover image ( #89 )
...
#### What type of PR is this?
/kind feature
#### What this PR does / why we need it:
为封面图增加一个暗色调滤镜,解决在亮色调背景图的情况下标题无法看清的问题。
#### Which issue(s) this PR fixes:
Fixes #86
#### Does this PR introduce a user-facing change?
```release-note
为封面图增加暗色调滤镜
```
2023-07-07 02:30:11 +00:00
Takagi
42918cf81c
pref: optimize toc to remove empty directories and fix some bugs ( #90 )
...
#### What type of PR is this?
/kind improvement
#### What this PR does / why we need it:
对 toc 进行优化。
1、当文章不存在 h1、h2、h3、h4 标题时,去除 toc 目录。
2、删除不正确的 activeClass 设置并添加 `active-li` 的样式
#### Which issue(s) this PR fixes:
Fixes #87
#### Does this PR introduce a user-facing change?
```release-note
优化 Toc 选中样式,当文章不存在目录时,删除空目录。
```
2023-07-03 06:34:12 +00:00
Ryan Wang
280e468a1b
refactor: change the url of the post editing route ( #81 )
...
修改文章和页面编辑按钮的地址指向,用于适配 https://github.com/halo-dev/halo/pull/4005
/kind improvement
```release-note
修改文章和页面编辑按钮的地址指向,适配 Halo 2.6 中的 Console 路由模式。
```
2023-06-01 02:30:11 +00:00
shutiao
4fef1a8903
fix the problem that the footer title does not display ( #72 )
...
#### What type of PR is this?
/kind improvement
#### What this PR does / why we need it:
解决自定义页脚标题设置之后不生效的问题。
<img width="1270" alt="image" src="https://user-images.githubusercontent.com/114651359/233311128-22c000c5-5a4a-44b8-a909-3ddcfa483c77.png ">
自定义页脚标题后,
<img width="1237" alt="image" src="https://user-images.githubusercontent.com/114651359/233311412-b2189223-57fd-4b4b-866b-fdae9568a991.png ">
#### Which issue(s) this PR fixes:
Ref #69
#### Special notes for your reviewer:
做了一个判断,若页脚标题设置了且不为空,则启用自定义的页脚标题,否则显示站点标题。
#### Does this PR introduce a user-facing change?
```release-note
none
```
2023-04-21 04:24:10 +00:00
shutiao
8a6aaeb4a0
fix: icp information is not displayed in the style 2 footer ( #67 )
...
#### What type of PR is this?
/kind improvement
#### What this PR does / why we need it:
在页脚风格2中添加了备案号的显示。
<img width="1439" alt="image" src="https://user-images.githubusercontent.com/114651359/233009313-95aaa6b4-202d-4ae4-bd12-7459c450400a.png ">
<img width="1433" alt="image" src="https://user-images.githubusercontent.com/114651359/233008450-f18e10f9-a1f5-4e87-8bdc-814cc77e16d2.png ">
#### Which issue(s) this PR fixes:
Ref #65
#### Special notes for your reviewer:
1、备案号的样式沿用页脚风格一的。
2、布局尽量拟合页脚风格二的。
#### Does this PR introduce a user-facing change?
```release-note
备案号的显示和链接。
```
2023-04-19 14:40:25 +00:00
bxs
029714c95e
perf: remove pointer cursor style for post card container ( #64 )
...
Fixed #53
- 去掉了post-card的“cursor-pointer”,这样鼠标指针移入post-card只有可点击时才会显示“手指”
```release-note
移除文章卡片最外层的手型鼠标样式。
```
2023-04-11 04:30:25 +00:00
Ryan Wang
9f2b374468
feat: adapt the target attribute of the menuitem ( #56 )
...
适配 MenuItem 的 target 属性,支持设置菜单打开方式,参考:
- https://docs.halo.run/developer-guide/theme/finder-apis/menu
- https://github.com/halo-dev/halo/pull/3072
注意,因为 target 属性是在 2.1.0 之后添加的,所以主题的 requires 设置为了 `>=2.1.0`。
/kind feature
```release-note
适配 Halo 菜单项打开方式的设置。
```
2023-03-19 06:08:31 +00:00
Wish
31773610b0
fix: logo width issue in some old browser ( #52 )
...
Fixes #51
```release-note
修复在部分浏览器中顶部 Logo 的宽度问题
```
2023-02-21 02:12:10 +00:00
lan-yonghui
ce6d07cd0b
fix: Footer Style 2 Logo is not displayed properly ( #40 )
...
What type of PR is this?
/kind bug
What this PR does / why we need it:
修复页脚风格二 Logo 显示不正确的问题。
Which issue(s) this PR fixes:
Fixes [halo-dev/halo#2894 ](https://github.com/halo-dev/halo/issues/2894 )
Does this PR introduce a user-facing change?
```
none
```
2023-01-11 04:32:39 +00:00
Ryan Wang
7d908f9929
feat: add halo:footer tag ( #39 )
...
在页脚添加 `<halo:footer />` 标签,修复在后台注入页脚代码不生效的问题。
/kind improvement
```release-note
在页脚添加 `<halo:footer />` 标签,修复在后台注入页脚代码不生效的问题。
```
2023-01-06 03:18:37 +00:00
Ryan Wang
10fd05ca16
refactor: color scheme switcher ( #32 )
...
修改切换主题色的方案,目前改为点击就切换为下一个主题色,请看:

Fixes https://github.com/halo-dev/halo/issues/2993
/kind improvement
```release-note
None
```
2022-12-26 06:36:31 +00:00
Ryan Wang
da5ce26e7f
refactor: separate hero image from header component ( #31 )
...
重构 header.html 部分的代码,将头部展示区域从 header.html 分离出来,方便单独为 header 设置 sticky 定位。以便解决:https://github.com/halo-dev/theme-earth/issues/27
/kind improvement
```release-note
None
```
2022-12-26 02:32:31 +00:00
Ryan Wang
cc210ebd0f
refactor: mobile menu style ( #29 )
...
1. 重构移动端的模态框菜单样式。
2. 修复移动端展开菜单按钮丢失的问题。
Fixes https://github.com/halo-dev/theme-earth/issues/28

```release-note
None
```
2022-12-22 08:00:28 +00:00
Ryan Wang
8bcc03b8b0
feat: add author archive template ( #23 )
...
添加作者页面,并将之前部分展示作者名称和头像的位置添加了作者访问链接。适配:https://github.com/halo-dev/halo/pull/2923
<img width="1920" alt="image" src="https://user-images.githubusercontent.com/21301288/207251573-cff9135c-6e0d-4af1-8db1-43bcfbbe2071.png ">
<img width="1920" alt="image" src="https://user-images.githubusercontent.com/21301288/207251627-69def72d-1f8f-4b78-b743-e2faddb71837.png ">
/kind feature
```release-note
添加作者模板,支持根据作者归档文章。
```
2022-12-15 05:10:10 +00:00
will
9d85344fa0
fix: Logo is not displayed properly ( #24 )
...
What type of PR is this?
/kind bug
What this PR does / why we need it:
修复页脚 Logo 显示不正确的问题。
Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/2894
Does this PR introduce a user-facing change?
```release-note
修复页脚 Logo 显示不正确的问题。
```
2022-12-15 03:44:09 +00:00
Ryan Wang
d6598c1722
refactor: use literal substitutions to improve th:class and th:text ( #21 )
...
使用 Thymeleaf 的 [Literal substitutions](https://www.thymeleaf.org/doc/tutorials/2.1/usingthymeleaf.html#literal-substitutions ) 特性优化 th:class 和 th:text 标签的字符串拼接写法,一定程度上可以让代码提升阅读性。它的写法类似于 JavaScript 的 [Template literals](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals )。
/kind improvement
```release-note
None
```
2022-12-13 03:28:43 +00:00
Ryan Wang
6f7e9cc3f5
chore: code cleanup
2022-11-30 10:30:25 +08:00