From c480ef18511aa5fa783570c181afe2c6a593689f Mon Sep 17 00:00:00 2001 From: mountainbug95 Date: Wed, 5 Feb 2020 18:01:33 -0600 Subject: [PATCH] Clean up social link generation --- layouts/partials/social-share.html | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) 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 }}
- - - + {{ $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 }}