瀏覽代碼

Add whatsapp social share. Update social-share.html

pull/297/head
prdm0 4 年之前
父節點
當前提交
4dfe4b0b84
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5
    0
      layouts/partials/social-share.html

+ 5
- 0
layouts/partials/social-share.html 查看文件

@@ -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…
取消
儲存