diff --git a/layouts/partials/share_icons.html b/layouts/partials/share_icons.html index 73f525a9..85c59b3b 100644 --- a/layouts/partials/share_icons.html +++ b/layouts/partials/share_icons.html @@ -4,12 +4,17 @@ {{- $.Scratch.Set "tags" ""}} {{- with .Params.Tags }} -{{ $hashtags := newScratch}} +{{- $hashtags := newScratch}} {{- range . }}{{ $hashtags.Add "tags" (slice (replaceRE "(\\s)" "" . ))}}{{end}} {{- $.Scratch.Set "tags" (delimit ($hashtags.Get "tags") ",") }} {{- end -}} +{{- $custom := false }} +{{- $ShareButtons := (.Param "ShareButtons")}} +{{- with $ShareButtons }}{{ $custom = true }}{{ end }} +