diff --git a/layouts/partials/share_icons.html b/layouts/partials/share_icons.html deleted file mode 100644 index ee80a2b..0000000 --- a/layouts/partials/share_icons.html +++ /dev/null @@ -1,62 +0,0 @@ -{{- $pageurl := .Permalink }} -{{- $title := .Title }} - -{{- $.Scratch.Set "tags" ""}} - -{{- with .Params.Tags }} -{{- $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 }} - -
- {{- if (cond ($custom) (in $ShareButtons "twitter") (true)) }} - - - - - - {{- end }} - {{- if (cond ($custom) (in $ShareButtons "facebook") (true)) }} - - - - - - {{- end }} - {{- if (cond ($custom) (in $ShareButtons "reddit") (true)) }} - - - - - - {{- end }} - {{- if (cond ($custom) (in $ShareButtons "telegram") (true)) }} - - - - - - {{- end }} - {{- if (cond ($custom) (in $ShareButtons "whatsapp") (true)) }} - - - - - - {{- end }} -
\ No newline at end of file