diff --git a/layouts/partials/social-share.html b/layouts/partials/social-share.html index 4c615dc..0b72915 100644 --- a/layouts/partials/social-share.html +++ b/layouts/partials/social-share.html @@ -1,21 +1,25 @@ -{{ $site := .Site }} {{ $title := .Title }} {{ $url := printf "%s" .URL | absLangURL }} -{{ $body := print $title ", by " .Site.Title "\n" .Params.description "\n\n" $url "\n" }} {{ $icon_size := "32px" }} -{{ $test_url := printf "%s" "https://www.google.com/" }} {{ if not .Params.disable_share }}
- + + {{ $facebook_href := printf "https://www.facebook.com/sharer.php?u=%s" $url }} + {{ partialCached "svg/facebook.svg" (dict "size" $icon_size) $icon_size }} - + {{ $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 }} + {{ partialCached "svg/twitter.svg" (dict "size" $icon_size) $icon_size }} - + {{ $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 }}