feat: add support for hiding upvote and share buttons on posts (#165)

支持隐藏文章的点赞和分享按钮。

/kind feature

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

```release-note
支持隐藏文章的点赞和分享按钮。
```
This commit is contained in:
Ryan Wang
2024-08-26 14:49:13 +08:00
committed by GitHub
parent f43a011527
commit 0cf51c3148
2 changed files with 18 additions and 1 deletions

View File

@@ -110,8 +110,20 @@ spec:
value: github
- label: Tailwind CSS Typography
value: tailwind
- $formkit: checkbox
name: show_upvote_button
label: 显示点赞按钮
value: true
- $formkit: checkbox
name: show_share_button
id: show_share_button
label: 显示分享按钮
value: true
- $formkit: repeater
if: $get(show_share_button).value
name: share_items
key: share_items
id: share_items
label: 分享按钮
value:
- id: wechat