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
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
118d19eae9
feat: improve accessibility of scroll-to-top button ( #179 )
...
添加回到顶部按钮的aria-label值,提高无障碍评分
```release-note
None
```
2024-09-04 06:05:43 +00:00
Anye
c072ac785b
refactor: optimize post edit button position ( #177 )
...
```release-note
优化文章编辑按钮,防止与滚动到顶部按钮重叠。
```
2024-09-04 02:23:42 +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
ed652815b9
refactor: improve ui ( #153 )
...
优化整体的 UI 和布局。
```release-note
None
```
2024-07-08 09:05:23 +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
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
6f7e9cc3f5
chore: code cleanup
2022-11-30 10:30:25 +08:00
Ryan Wang
dfb95dc40f
perf: refine page title
2022-11-23 23:54:01 +08:00
Ryan Wang
3bb4737c4b
feat: adding versions to static resource links
2022-11-12 19:43:25 +08:00
Ryan Wang
e6c8677d98
feat: add setup color scheme support
2022-11-09 22:49:14 +08:00
Ryan Wang
2f50739a52
feat: add dark mode color scheme
2022-11-09 22:00:27 +08:00
Ryan Wang
0aee53cb7d
fix: deprecated unwrapped fragment expression
2022-10-28 21:40:05 +08:00
Ryan Wang
bf574b7aeb
feat: post sidebar support table of content
...
Signed-off-by: Ryan Wang <i@ryanc.cc >
2022-10-15 14:02:28 +08:00
Ryan Wang
608a9b6686
chore: remove defer attribute for main.js
...
Signed-off-by: Ryan Wang <i@ryanc.cc >
2022-10-13 22:43:52 +08:00
Ryan Wang
f657f5e62c
styles: reformat code
...
Signed-off-by: Ryan Wang <i@ryanc.cc >
2022-10-10 14:51:02 +08:00
Ryan Wang
9b508ec07c
feat: add support for site header configuration
...
Signed-off-by: Ryan Wang <i@ryanc.cc >
2022-10-07 21:22:27 +08:00
Ryan Wang
7959e34995
perf: styles of header menu
...
Signed-off-by: Ryan Wang <i@ryanc.cc >
2022-10-07 20:08:53 +08:00
Ryan Wang
87ececb908
feat: add overlay menu for mobile device
...
Signed-off-by: Ryan Wang <i@ryanc.cc >
2022-10-06 22:06:43 +08:00
Ryan Wang
4409d28915
perf: improve styles
...
Signed-off-by: Ryan Wang <i@ryanc.cc >
2022-10-06 20:44:04 +08:00
Ryan Wang
23d1ed7d1c
feat: add code block highlight support
...
Signed-off-by: Ryan Wang <i@ryanc.cc >
2022-10-06 12:46:19 +08:00
Ryan Wang
1180cce42c
feat: preliminary completion of category archive page and sidebar
...
Signed-off-by: Ryan Wang <i@ryanc.cc >
2022-10-06 11:37:05 +08:00
Ryan Wang
d39c95bbce
feat: preliminary completion of index page and post page
...
Signed-off-by: Ryan Wang <i@ryanc.cc >
2022-10-06 00:38:24 +08:00