SocialLinks
This addon provides an easy way to generate social sharing links for channels like Facebook, Twitter and more.
Simply copy the SocialLinks folder into site/addons/.
That’s it, you’re done!
This addon supports the following social channels:
Facebook, Twitter, LinkedIn, Pinterest, WhatsApp, Email
To create a sharing link, you have to call the tag followed by the channel of your choice.
<!-- Facebook -->
{{ sociallinks:facebook }}
<!-- Twitter -->
{{ sociallinks:twitter }}
<!-- LinkedIn -->
{{ sociallinks:linkedin }}
<!-- Pinterest -->
{{ sociallinks:pinterest }}
<!-- WhatsApp -->
{{ sociallinks:whatsapp }}
<!-- Email -->
{{ sociallinks:mail }}
The {{ sociallinks }} tag will use the URL of the current page by default. If you want to share a different URL, you may pass it using the url parameter.
{{ sociallinks:facebook url="https://www.myveryspecialwebsite.com" }}
You may pass the following parameters to customize the generated link.
Name
Description
Usage
url
The URL of the page to share
Optional
text
The text of your post
Optional
Twitter
Name
Description
Usage
url
The URL of the page to share
Optional
text
The text of your Tweet
Optional
handle
The twitter handle you want to add to the Tweet
Optional
Name
Description
Usage
url
The URL of the page to share
Optional
title
The title of your post
Optional
text
The text of your post
Optional
source
The source of your post
Optional
Name
Description
Usage
url
The URL of the page to share
Optional
image
The image to share
Optional
Name
Description
Usage
url
The URL of the page to share
Optional
Name
Description
Usage
url
The URL of the page to share
Optional
mailto
The email address you want to send the email to
Required
cc
The email address to CC
Optional
bcc
The email address to BCC
Optional
subject
The subject of the email
Optional
body
The body of the email
Optional