mirror of
https://github.com/halo-dev/theme-earth.git
synced 2025-10-25 04:05:51 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user