Commit Graph

33 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
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
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
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
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
c3c2d59db2 fix: single page not working (#60)
修复自定义页面无法正常渲染的问题。

/kind bug

Fixed #59 

```release-note
修复自定义页面无法正常渲染的问题。
```
2023-03-20 14:50:26 +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
BugKing
c7e62290e7 fix: 作者头像未设置时在自定义页面不显示 (#17)
当作者没有设置头像时不显示图片,与文章模板保持一致。
修改前:
![image](https://user-images.githubusercontent.com/27671436/201887376-7aa7ec72-f193-48a9-b86a-9cc1cd6ff420.png)
修改后:
![image](https://user-images.githubusercontent.com/27671436/201887241-795826fb-589a-44b5-8715-e8a763de45cc.png)
2022-11-15 12:26:17 +00: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
439c23f111 perf: improve dark mode scheme style for page template 2022-11-09 23:00:28 +08:00
Ryan Wang
2f50739a52 feat: add dark mode color scheme 2022-11-09 22:00:27 +08:00
Ryan Wang
fdb08770f0 perf: limit the number of lines in the title and excerpt of the post card
Fixes https://github.com/halo-sigs/theme-earth/issues/9
2022-11-08 22:06:10 +08:00
Ryan Wang
0aee53cb7d fix: deprecated unwrapped fragment expression 2022-10-28 21:40:05 +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