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" content: "min read"
scrollprogress: scrollprogress:
enable: true enable: true
socialShare: true
# For translations # For translations
terms: terms:
+1 -1
View File
@@ -64,7 +64,7 @@
</aside> </aside>
{{end}} {{end}}
{{ if .Params.socialShare | default true }} {{ if .Params.socialShare | default .Site.Params.singlePages.socialShare | default true }}
<aside class="social"> <aside class="social">
<h5>{{ .Site.Params.terms.social | default "Social" }}</h5> <h5>{{ .Site.Params.terms.social | default "Social" }}</h5>
<div class="social-content"> <div class="social-content">