Commit Graph

44 Commits

Author SHA1 Message Date
Ryan Wang
ed652815b9 refactor: improve ui (#153)
优化整体的 UI 和布局。

```release-note
None
```
2024-07-08 09:05:23 +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
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
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
4bb65cf143 refactor: post upvote ux (#115)
Signed-off-by: Ryan Wang <i@ryanc.cc>
2023-10-13 02:24:56 -05:00
Ryan Wang
006f809081 fix: comment area anchor not working (#111)
修复文章和页面中点击评论图标无法跳转到评论区域的问题。

<img width="1099" alt="image" src="https://github.com/halo-dev/theme-earth/assets/21301288/577b5bfc-33d1-4eba-bc56-b181025fd8cb">

/kind bug

```release-note
修复文章和页面中点击评论图标无法跳转到评论区域的问题。
```
2023-10-13 05:36:10 +00:00
Ryan Wang
e3c2d95aa6 feat: add moments page (#112)
适配[瞬间插件](https://github.com/halo-sigs/plugin-moments)。

/kind feature
Fixes https://github.com/halo-dev/theme-earth/issues/70

<img width="1138" alt="image" src="https://github.com/halo-dev/theme-earth/assets/21301288/6fc9df4b-0fb3-4116-8cb9-2e02242acbcc">
<img width="1036" alt="image" src="https://github.com/halo-dev/theme-earth/assets/21301288/e4d3243b-e35c-41f5-a1d6-86c1ed9d8b85">

```release-note
适配瞬间插件。
```
2023-10-12 07:52:30 +00:00
Ryan Wang
19579486af refactor: comment visible condition (#110)
修改评论功能是否可用的判断方式。

see https://github.com/halo-dev/halo/pull/4271

/kind improvement

```release-note
修改评论功能是否可用的判断方式。
```
2023-09-18 03:42:19 +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
SeanGeng
525ba84ad3 fix: fix the post sidebar_prepend zindex (#85)
fix #84 

https://tailwindcss.com/docs/z-index#arbitrary-values
> If you need to use a one-off z-index value that doesn’t make sense to include in your theme, use square brackets to generate a property on the fly using any arbitrary value.
2023-06-20 13:50:10 +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
Faithlv
6f0998c077 fix: post table of contents covers the user menus (#80)
文章页面目录会遮挡头像弹出的部分窗口

测试了下应该是文章目录的css问题,文章目录z-index为50,弹出窗口z-index为10,改下这个属性就行

```release-note
None 
```
2023-05-15 14:24:35 +00:00
shutiao
d3a84719c0 feat: increased the length of the post toc widget (#79)
#### What type of PR is this?

/kind improvement

#### What this PR does / why we need it:

稍微加大了文章目录的长度。
<img width="317" alt="image" src="https://user-images.githubusercontent.com/114651359/236596800-a5aa4df4-cd09-4b70-a047-3e6c22900cd3.png">


#### Which issue(s) this PR fixes:

Fixes #77 

#### Special notes for your reviewer:

目录高度自适应,最大高度从max-h-40到max-h-64

#### Does this PR introduce a user-facing change?

```release-note
文章目录最大高度变大
```
2023-05-09 03:59:42 +00:00
shutiao
e3e015bcaf feat: add sticky supports for post toc (#74)
#### What type of PR is this?

/kind feature

#### What this PR does / why we need it:

固定了文章目录。
<img width="1255" alt="image" src="https://user-images.githubusercontent.com/114651359/233912961-2d3dea34-7e58-4ded-8b86-022cd9e33650.png">
<img width="1212" alt="image" src="https://user-images.githubusercontent.com/114651359/233913545-27a3df11-227e-4b7b-946e-c1f8b8b2c4a8.png">

#### Which issue(s) this PR fixes:

Ref #49 

#### Special notes for your reviewer:

1、粘性位置,距离顶部5rem,z层50
2、目录最大高度为10rem

#### Does this PR introduce a user-facing change?

```release-note
固定了文章目录栏。
```
2023-04-25 09:16:16 +00:00
shutiao
e20758e919 fix: link overflow (#68)
#### What type of PR is this?

/kind improvement

#### What this PR does / why we need it:

修复文章中链接过长溢出的问题。
<img width="1025" alt="image" src="https://user-images.githubusercontent.com/114651359/233283594-df11456e-ac8b-4e8f-a0bd-7c505c08802d.png">

#### Which issue(s) this PR fixes:

halo里的“当一个链接过长时,出现超越屏幕边界的问题” #3474
https://github.com/halo-dev/halo/issues/3474

#### Special notes for your reviewer:

发现问题好像是由于把整个链接看作了一个单词导致无法换行,加上css属性“word-wrap:break-word”,让他在找不到换行位置的时候也换行。

#### Does this PR introduce a user-facing change?

```release-note
none
```
2023-04-20 07:48:10 +00:00
Ryan Wang
e019cb2c88 feat: add upvote supports to post (#48)
添加文章点赞的支持。

/kind feature

<img width="1106" alt="image" src="https://user-images.githubusercontent.com/21301288/218495333-6363ab53-7511-40fa-8d63-d10d3987cb6b.png">

```release-note
为文章添加点赞的支持
```
2023-02-16 03:54:12 +00:00
Ryan Wang
5d990b02a3 feat: add supports for disabled comment (#47)
支持同时判断文章是否允许评论以及全局是否允许评论。

Fixes #45 
Fixes https://github.com/halo-dev/theme-earth/issues/38

/kind feature

```release-note
None
```
2023-02-15 15:02:12 +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
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
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
b4108067d1 refactor: remove appvote and share button 2022-11-30 18:14:42 +08:00
Ryan Wang
dfb95dc40f perf: refine page title 2022-11-23 23:54:01 +08:00
Ryan Wang
f9c015042b feat: add edit button to post detail page 2022-11-22 15:12:47 +08:00
Ryan Wang
f260f28db2 refactor: the author of the post uses the owner field
Fixes https://github.com/halo-dev/theme-earth/issues/18
2022-11-16 10:52:33 +08:00
Ryan Wang
bac6427259 refactor: use tailwindcss-plugin-icons to build icons 2022-11-11 17:21:02 +08:00
Ryan Wang
38722896fe feat: support for checking comment widget and search widget plugin availability 2022-11-11 14:51:19 +08:00
Ryan Wang
9df3eaaaf3 feat: support setup color scheme for comment widget 2022-11-11 14:37:24 +08:00
Ryan Wang
2f50739a52 feat: add dark mode color scheme 2022-11-09 22:00:27 +08:00
Ryan Wang
220e330eb8 perf: limit the number of words in the next / previous post title to 20 in the post details
Fixes https://github.com/halo-sigs/theme-earth/issues/12
2022-11-08 22:19:44 +08:00
Ryan Wang
5934e2045c feat: support for cases where no logo is set 2022-11-08 14:20:53 +08:00
Ryan Wang
32463eb3c5 feat: post page support get previous/next post 2022-11-03 22:21:16 +08:00
Ryan Wang
0aee53cb7d fix: deprecated unwrapped fragment expression 2022-10-28 21:40:05 +08:00
Ryan Wang
028e554b9b feat: add preview theme support 2022-10-24 11:40:53 +08:00
Ryan Wang
b6a23a646e perf: code block style 2022-10-23 21:24:15 +08:00
Ryan Wang
e416fa1e1b chore: remove highlight.js and lightGallery 2022-10-23 21:21:50 +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
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
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
d95bb82e5b feat: add page.html template
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-10-06 11:49:19 +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