Last active
August 29, 2015 14:20
-
-
Save jmuspratt/863faab093618183d332 to your computer and use it in GitHub Desktop.
Twitter, Linkedin, Facebook, and Email
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul class="post-share"> | |
{% set post_url_safe = entry.url | url_encode %} | |
{% set post_title_safe = entry.title | url_encode %} | |
{% set site_name_safe = siteName | url_encode %} | |
<li class="share-link share-link-twitter"><a target="_blank" href="http://twitter.com/intent/tweet?url={{ post_url_safe}}&text={{ post_title_safe }}&via={{ site_name_safe }}">Share on Twitter</a></li> | |
<li class="share-link share-link-linkedin"><a target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&url={{ post_url_safe}}&title={{ post_title_safe }}">Share on LinkedIn</a></li> | |
<li class="share-link share-link-facebook"><a target="_blank" href="http://facebook.com/sharer.php?u={{ post_url_safe}}&t={{ post_title_safe }}">Share on Facebook</a></li> | |
<li class="share-link share-link-email"><a target="_blank" href="mailto:?subject={{ post_title_safe }}&body={{ post_url_safe }}">Share by Email</a></li> | |
</ul> <!-- post-share --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment