235 Commits

Author SHA1 Message Date
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  基础上加入了公安联网备案相关的设置项
不输入公安联网备案号时不渲染公安备案图标
### 效果图
#### 底部
![image](https://github.com/halo-dev/theme-earth/assets/127591077/0e21d753-5085-4f58-a935-a38b37b11f28)
#### 设置页面
![image](https://github.com/halo-dev/theme-earth/assets/127591077/d25a82e0-6662-489f-97ab-22780c872cc3)

```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
706f0a78e3 chore: bump dependencies (#88)
升级依赖的版本。

/kind improvement

```release-note
None 
```
2023-06-30 07:52:13 +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
f98f632c20 chore: release 1.4.0 (#82) v1.4.0 2023-06-01 10:47:26 +08: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
Ryan Wang
2438415246 chore: release 1.3.0
Signed-off-by: Ryan Wang <i@ryanc.cc>
v1.3.0
2023-04-27 17:40:13 +08: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
3111d9eeca feat: add post archives template (#73)
#### What type of PR is this?

/kind feature

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

增加了归档页
<img width="1429" alt="image" src="https://user-images.githubusercontent.com/114651359/233537216-d941bb9b-9d64-42a5-b6b2-e72f3994e7ce.png">
没有文章时:
<img width="1154" alt="image" src="https://user-images.githubusercontent.com/114651359/233537600-77429f22-c558-4df0-a9b8-9531d0b7d92e.png">



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

Ref #19 

#### Special notes for your reviewer:

布局样式参考links页面

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

```release-note
增加了归档页面
```
2023-04-25 09:12:16 +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
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
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
Gadore
9615fa3bff add rss icon in sidebar media selection (#62)
因为这个主题暂时没有设置Rss显示的地址,我对这个又比较看重,所以就在社交媒体里边增加了一个Rss选择的图标选项,已测试,显示正常,可通过我的博客地址预览显示效果https://gadore.top


```release-note
None
```
2023-03-31 03:42:13 +00:00
Ryan Wang
1e5dfcb0f7 chore: release 1.2.1 (#61)
发布 1.2.1

```release-note
None
```
v1.2.1
2023-03-20 15:02:25 +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
41dc24c1ed chore: bump dependencies (#57)
更新所有依赖的 patch 版本。

/kind improvement

```release-note
None 
```
v1.2.0
2023-03-19 06:12:31 +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
Ryan Wang
8d0081f4c0 chore: release 1.2.0 (#58)
发布 1.2.0。

Fixes #55 

/kind  improvement

```release-note
None
```
2023-03-19 00:40:30 +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
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
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
5372e1f3f4 chore: release 1.1.1 (#37)
发布 1.1.1

/kind improvement

```release-note
None
```
v1.1.1
2022-12-30 07:42:33 +00:00
Ryan Wang
50602ef9f2 fix: links of links page are not bound url (#36)
修复链接页面(/links)的链接没有绑定访问地址的问题。

/kind bug

Fixes https://github.com/halo-dev/theme-earth/issues/35

```release-note
None
```
2022-12-29 14:34:32 +00:00
Ryan Wang
aca0692f41 fix: error template render (#34)
修复异常页面无法正常渲染的问题。

/kind bug

```release-note
None
```
2022-12-27 06:34:32 +00:00
Ryan Wang
6830cc6c31 chore: release 1.1.0 (#33)
发布 1.1.0。

/kind improvement


```release-note
None
```
v1.1.0
2022-12-26 13:34:32 +00:00
Ryan Wang
10fd05ca16 refactor: color scheme switcher (#32)
修改切换主题色的方案,目前改为点击就切换为下一个主题色,请看:

![2022-12-23 17 52 24](https://user-images.githubusercontent.com/21301288/209314225-808b4c0d-ab11-4c41-a716-7617b17933a7.gif)

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

![2022-12-21 17 52 10](https://user-images.githubusercontent.com/21301288/208875951-2adfad74-d5a4-4f94-8c10-5dcfc17ad92c.gif)

```release-note
None
```
2022-12-22 08:00:28 +00:00
Ryan Wang
a859a0fd54 chore: add LICENSE (#30)
添加 LICENSE

/kind improvement

```release-note
None
```
2022-12-21 14:42:29 +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
6c5c68bd7b feat: add exception pages (#22)
新增 404 和 500 的异常模板。适配:https://github.com/halo-dev/halo/pull/2925

<img width="1920" alt="image" src="https://user-images.githubusercontent.com/21301288/207247014-81717c6c-7eae-4819-a940-979df46c56cf.png">
<img width="1920" alt="image" src="https://user-images.githubusercontent.com/21301288/207247066-b5684013-f893-4576-bc5c-bc25c0ce914a.png">

/kind feature

```release-note
None
```
2022-12-14 15:18:18 +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
aa8ad7f785 Release 1.0.0 v1.0.0 2022-11-30 18:15:59 +08:00
Ryan Wang
b4108067d1 refactor: remove appvote and share button 2022-11-30 18:14:42 +08:00
Ryan Wang
6cab524947 docs: add screenshot image 2022-11-30 15:31:54 +08:00
Ryan Wang
ab7b62ca00 chore: code cleanup 2022-11-30 11:01:00 +08:00
Ryan Wang
6f7e9cc3f5 chore: code cleanup 2022-11-30 10:30:25 +08:00
Ryan Wang
fecc93f0eb Release 1.0.0-beta.1 v1.0.0-beta.1 2022-11-24 23:35:10 +08:00
Ryan Wang
2bd86cbd6a refactor: use repeater to setup footer menus 2022-11-24 20:42:52 +08:00
Ryan Wang
dfb95dc40f perf: refine page title 2022-11-23 23:54:01 +08:00
Ryan Wang
ab4d63bf90 docs: update readme 2022-11-23 10:54:34 +08:00
Ryan Wang
a5f707c5ee chore: bump dependencies 2022-11-22 15:14:32 +08:00