Create social sharing links that use the current site's URL
The social networks allow you to pass a title/text to pre-fill the share link. The below use the site.title for this message, but that can be replaced with what you want.
site.title
# twitter <a href="https://twitter.com/?status={{ '%s %s'|format(site.title, site.formatted_url|urlencode) }}" target="_blank">Twitter</a><br> # facebook <a href="https://www.facebook.com/sharer.php?u={{ site.formatted_url|urlencode }}&t={{ site.title|urlencode }}">Facebook</a><br> # linkedin <a href="https://www.linkedin.com/shareArticle?mini=true&url={{ site.formatted_url|urlencode }}&title={{ site.title|urlencode }}&source=LinkedIn">LinkedIn</a><br>
Last updated 5 years ago