mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-06-08 17:22:46 +00:00
Add whatsapp social share. Update social-share.html
This commit is contained in:
parent
d00fff1ebe
commit
4dfe4b0b84
@ -22,5 +22,10 @@
|
|||||||
<a href="{{ $linkedin_href }}" class="linkedin no-underline" aria-label="share on LinkedIn">
|
<a href="{{ $linkedin_href }}" class="linkedin no-underline" aria-label="share on LinkedIn">
|
||||||
{{ partialCached "svg/linkedin.svg" (dict "size" $icon_size) $icon_size }}
|
{{ partialCached "svg/linkedin.svg" (dict "size" $icon_size) $icon_size }}
|
||||||
</a>
|
</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>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user