From 2d6f4488fc61f530c0dd5df9bed7340b98b3a9c8 Mon Sep 17 00:00:00 2001 From: Aroy-Art Date: Tue, 8 Feb 2022 15:51:19 +0100 Subject: [PATCH] Add: post share config and more sites --- layouts/partials/post-share.html | 96 ------------------ layouts/partials/post_share.html | 168 +++++++++++++++++++++++++++++++ 2 files changed, 168 insertions(+), 96 deletions(-) delete mode 100644 layouts/partials/post-share.html create mode 100644 layouts/partials/post_share.html diff --git a/layouts/partials/post-share.html b/layouts/partials/post-share.html deleted file mode 100644 index a1be93f..0000000 --- a/layouts/partials/post-share.html +++ /dev/null @@ -1,96 +0,0 @@ -{{ $url := printf "%s" .Permalink | absLangURL }} - -
-

{{ i18n "share" }}:

- - - - - - - - - - - - -
- -
-
- - - - - - - - -
- -
-
- - - -
- -
-
- - - -
- -
-
- -
\ No newline at end of file diff --git a/layouts/partials/post_share.html b/layouts/partials/post_share.html new file mode 100644 index 0000000..472b4fb --- /dev/null +++ b/layouts/partials/post_share.html @@ -0,0 +1,168 @@ +{{ $data := index site.Data.post_share.post_share }} + +{{ $url := printf "%s" .Permalink | absLangURL }} + +
+

{{ i18n "share" }}:

+ + {{ if $data.facebook }} + + + + + {{ end }} + + {{ if $data.twitter }} + + + + + {{ end }} + + {{ if $data.tumblr }} + + +
+ +
+
+ {{ end }} + + {{ if $data.email }} + + + + + {{ end }} + + {{ if $data.pinterest}} + + +
+ +
+
+ {{ end }} + + {{ if $data.linkedin }} + + +
+ +
+
+ {{ end }} + + {{ if $data.reddit }} + + +
+ +
+
+ {{ end }} + + {{ if $data.xing }} + + +
+ +
+
+ {{ end }} + + {{ if $data.whatsapp }} + + +
+ +
+
+ {{ end }} + + {{ if $data.hackernews }} + + +
+ +
+
+ {{ end }} + + {{ if $data.vk }} + + +
+ +
+
+ {{ end }} + + {{ if $data.telegram }} + + +
+ +
+
+ {{ end }} +