From 4dfe4b0b84074814d8fd66f038a0dffe71f6ae74 Mon Sep 17 00:00:00 2001 From: prdm0 Date: Mon, 15 Jun 2020 21:24:55 -0300 Subject: [PATCH] Add whatsapp social share. Update social-share.html --- layouts/partials/social-share.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/layouts/partials/social-share.html b/layouts/partials/social-share.html index eb313c0..7f76284 100644 --- a/layouts/partials/social-share.html +++ b/layouts/partials/social-share.html @@ -22,5 +22,10 @@ {{ partialCached "svg/linkedin.svg" (dict "size" $icon_size) $icon_size }} + + {{ $whatsapp_href := printf "https://api.whatsapp.com/send?text=%s&url=%s" $url}} + + {{ partialCached "svg/whatsapp.svg" (dict "size" $icon_size) $icon_size }} + {{ end }}