Skip to content

Commit 3bb96c5

Browse files
committed
fix: make sharing label optional
1 parent a4c3693 commit 3bb96c5

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

data/structures/sharing.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,9 @@ arguments:
77
optional: false
88
comment: Context of the current page.
99
group: partial
10+
show-label:
11+
type: bool
12+
optional: true
13+
default: true
14+
comment: Indicates if the element should include a label.
15+
release: v1.15.3

layouts/_partials/assets/sharing.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
{{- end -}}
4646

4747
<div class="py-3 text-body-secondary hstack gap-1">
48-
{{ T "shareLink" " " }}
48+
{{ if $args.showLabel }}{{ T "shareLink" " " }}{{ end }}
4949
{{- range $index, $item := $list -}}
5050
{{- $url := $item.url -}}
5151
{{- $url = replace $url "{url}" $page.Permalink -}}

0 commit comments

Comments
 (0)