Browse Source

Add whatsapp social share. Update social-share.html

pull/297/head
prdm0 4 years ago
parent
commit
4dfe4b0b84
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      layouts/partials/social-share.html

+ 5
- 0
layouts/partials/social-share.html View File

@@ -22,5 +22,10 @@
<a href="{{ $linkedin_href }}" class="linkedin no-underline" aria-label="share on LinkedIn">
{{ partialCached "svg/linkedin.svg" (dict "size" $icon_size) $icon_size }}
</a>
{{ $whatsapp_href := printf "https://api.whatsapp.com/send?text=%s&url=%s" $url}}
<a href="{{ $whatsapp_href }}" class="whatsapp no-underline" aria-label="share on Whatsapp">
{{ partialCached "svg/whatsapp.svg" (dict "size" $icon_size) $icon_size }}
</a>
</div>
{{ end }}

Loading…
Cancel
Save