Sfoglia il codice sorgente

Add whatsapp social share. Update social-share.html

pull/297/head
prdm0 4 anni fa
parent
commit
4dfe4b0b84
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5
    0
      layouts/partials/social-share.html

+ 5
- 0
layouts/partials/social-share.html Vedi 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…
Annulla
Salva