For the complete documentation index, see llms.txt. This page is also available as Markdown.

Social sharing links

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.

# 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 }}&amp;t={{ site.title|urlencode }}">Facebook</a><br>

# linkedin
<a href="https://www.linkedin.com/shareArticle?mini=true&amp;url={{ site.formatted_url|urlencode }}&amp;title={{ site.title|urlencode }}&amp;source=LinkedIn">LinkedIn</a><br>

Last updated

Was this helpful?