Skip to content

Instantly share code, notes, and snippets.

@andrii-marushchak
Last active December 9, 2020 20:02
Show Gist options
  • Save andrii-marushchak/7b11be437cd973c83e59c44392849dd4 to your computer and use it in GitHub Desktop.
Save andrii-marushchak/7b11be437cd973c83e59c44392849dd4 to your computer and use it in GitHub Desktop.
Share Buttons
<!-- Basic Share Links -->
<!-- Twitter (url, text, @mention) -->
<a href="https://twitter.com/share?url=<URL>&text=<TEXT>via=<USERNAME>">
Twitter
</a>
<a href="https://twitter.com/share?ref_src=twsrc%5Etfw" class="twitter-share-button" data-show-count="false">Tweet</a>
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
<!-- Facebook (url) -->
<a href="https://www.facebook.com/sharer/sharer.php?u=<URL>">
Facebook
</a>
<!-- Reddit (url, title) -->
<a href="https://reddit.com/submit?url=<URL>&title=<TITLE>">
Reddit
</a>
<!-- Hacker News (url, title) -->
<a href="https://news.ycombinator.com/submitlink?u=<URL>&t=<TITLE>">
Hacker News
</a>
<!-- LinkedIn (url, title, summary, source url) -->
<a href="https://www.linkedin.com/shareArticle?url=<URL>&title=<TITLE>&summary=<SUMMARY>&source=<SOURCE_URL>">
LinkedIn
</a>
<!-- Email (subject, body) -->
<a href="mailto:?subject=<SUBJECT>&body=<BODY>">
Email
</a>
Pinterest
http://pinterest.com/pin/create/button/?url=<URL>&description=<TITLE>
E.g http://pinterest.com/pin/create/button/?url=https%3A%2F%2Fwww.google.com&description=This+is+google+a+search+engine
Linked In
https://www.linkedin.com/shareArticle?mini=true&url=[URL]&title=[TITLE]
E.g https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.google.com&title=This+is+google+a+search+engine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment