From 60fe49ea3af38d4a7d5e8de1cdb72887b167b22d Mon Sep 17 00:00:00 2001 From: gabrielgio Date: Sat, 11 Jul 2020 22:35:14 +0200 Subject: Moving from jekyll to hugo --- themes/ananke/layouts/partials/social-share.html | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 themes/ananke/layouts/partials/social-share.html (limited to 'themes/ananke/layouts/partials/social-share.html') diff --git a/themes/ananke/layouts/partials/social-share.html b/themes/ananke/layouts/partials/social-share.html new file mode 100644 index 0000000..eb313c0 --- /dev/null +++ b/themes/ananke/layouts/partials/social-share.html @@ -0,0 +1,26 @@ +{{ $title := .Title }} +{{ $url := printf "%s" .Permalink | absLangURL }} +{{ $icon_size := "32px" }} + +{{ if not .Params.disable_share }} +
+ + {{ $facebook_href := printf "https://www.facebook.com/sharer.php?u=%s" $url }} + + + {{ $twitter_href := printf "https://twitter.com/share?url=%s&text=%s" $url $title }} + {{ with .Site.Social.twitter }} + {{ $twitter_href = printf "%s&via=%s" $twitter_href . }} + {{ end }} + + + {{ $linkedin_href := printf "https://www.linkedin.com/shareArticle?mini=true&url=%s&title=%s" $url $title }} + + {{ partialCached "svg/linkedin.svg" (dict "size" $icon_size) $icon_size }} + +
+{{ end }} -- cgit v1.2.3