diff options
author | Rory Gibson <rg.rorygibson@gmail.com> | 2014-02-27 03:11:29 +0400 |
---|---|---|
committer | Rory Gibson <rg.rorygibson@gmail.com> | 2014-02-27 03:11:29 +0400 |
commit | 7f3b7d0a4602cd72dadcf97005cc9c98aa86d6af (patch) | |
tree | 1caa883937349e9fc13d3dd236dbe683a37f7fd4 /index.hbs | |
parent | 310c68b4adfd7a18a6df29044da6bba80fc1d4af (diff) |
Added social share buttons
Diffstat (limited to 'index.hbs')
-rw-r--r-- | index.hbs | 26 |
1 files changed, 24 insertions, 2 deletions
@@ -10,13 +10,35 @@ <p class="post-date"><time datetime="{{published_at}}">Published {{date format="MMMM Do YYYY"}}</time></p> </header> - <div class="post-content"> + <div class="post-content clearfix"> {{{content}}} + </div> + <footer class="post-footer clearfix"> {{#if tags}} <p class="post-tags"><span>Tagged:</span> {{tags}}</p> {{/if}} - </div> + + <div class="share"> + <a class="icon-twitter" href="http://twitter.com/share?text={{encode title}}&url={{url absolute="true"}}" + onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;"> + <i class="fa fa-twitter"></i> + <span class="hidden">Twitter</span> + </a> + + <a class="icon-facebook" href="https://www.facebook.com/sharer/sharer.php?u={{url absolute="true"}}" + onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;"> + <i class="fa fa-facebook"></i> + <span class="hidden">Facebook</span> + </a> + + <a class="icon-google-plus" href="https://plus.google.com/share?url={{url absolute="true"}}" + onclick="window.open(this.href, 'google-plus-share', 'width=490,height=530');return false;"> + <i class="fa fa-google-plus"></i> + <span class="hidden">Google+</span> + </a> + </div> + </footer> </article> {{/if}} {{/foreach}} |