Add option to globally disable single page social share

Signed-off-by: Marek Pikuła <[email protected]>
This commit is contained in:
Marek Pikuła
2024-06-02 01:06:55 +02:00
parent 4687d53336
commit 9b5ef18fd9
2 changed files with 6 additions and 5 deletions
+1
View File
@@ -385,6 +385,7 @@ params:
content: "min read"
scrollprogress:
enable: true
socialShare: true
# For translations
terms:
+1 -1
View File
@@ -64,7 +64,7 @@
</aside>
{{end}}
{{ if .Params.socialShare | default true }}
{{ if .Params.socialShare | default .Site.Params.singlePages.socialShare | default true }}
<aside class="social">
<h5>{{ .Site.Params.terms.social | default "Social" }}</h5>
<div class="social-content">