diff options
author | Ben Burwell <ben@benburwell.com> | 2015-05-19 15:59:18 -0400 |
---|---|---|
committer | Ben Burwell <ben@benburwell.com> | 2015-05-19 15:59:18 -0400 |
commit | a0eb7b9f5fbafc6d7fc0104b391949fb60b6fddd (patch) | |
tree | 32d73429de729ce097c145a1a244dc033308c79c /_layouts/post.html | |
parent | 1ec61d555449041b5a4ea1a41c2bcd40dcc7ac00 (diff) |
Add sharing links to the post layout
Diffstat (limited to '_layouts/post.html')
-rw-r--r-- | _layouts/post.html | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/_layouts/post.html b/_layouts/post.html index ea8eb30..cd1eeaf 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -13,6 +13,16 @@ layout: master </div> </article> +<div class="print-hide center"> + <p class="sans">Share on:</p> + <p> + <a target="_blank" href="https://news.ycombinator.com/submitlink?u=http%3A%2F%2Fwww.benburwell.com{{ page.url | cgi_escape }}&t={{ page.title }}"><i class="fa fa-2x fa-hacker-news"></i></a> + <a target="_blank" href="https://twitter.com/intent/tweet?text={{ page.title }}&url=http%3A%2F%2Fwww.benburwell.com{{ page.url | cgi_escape }}"><i class="fa fa-2x fa-twitter-square"></i></a> + <a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fwww.benburwell.com{{ page.url | cgi_escape }}"><i class="fa fa-2x fa-facebook-square"></i></a> + <a target="_blank" href="https://plus.google.com/share?url=http%3A%2F%2Fwww.benburwell.com{{ page.url | cgi_escape }}&t={{ page.title }}"><i class="fa fa-2x fa-google-plus-square"></i></a> + </p> +</div> + <div class="print-hide"> <div class="split"> {% if page.previous %} @@ -27,10 +37,4 @@ layout: master </div> {% endif %} </div> - - <div class="center"> - {% for post in site.related_posts limit:3 %} - <p class="sans"><a href="{{ post.url }}">{{ post.title }}</a></p> - {% endfor %} - </div> </div> |