Skip to content
This repository has been archived by the owner on May 12, 2019. It is now read-only.

Commit

Permalink
Improve twitter share. rel me tag for social links
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Aug 31, 2015
1 parent 3ec3d83 commit eef7556
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions partials/social.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -49,23 +49,23 @@ classes that you can use:

<!-- Twitter -->
<li class="social item hvr-grow-rotate">
<a target="blank" href="http://twitter.com/kikobeats" title="@Kikobeats on Twitter">
<a rel="me" target="blank" href="http://twitter.com/kikobeats" title="@Kikobeats on Twitter">
<i class='icon icon-social-twitter'></i>
<span class="label">Twitter</span>
</a>
</li>

<!-- Linkedin -->
<li class="social item hvr-grow-rotate">
<a target="blank" href="http://linkedin.com/in/kikobeats" title="Kikobeats on LinkedIn">
<a rel="me" target="blank" href="http://linkedin.com/in/kikobeats" title="Kikobeats on LinkedIn">
<i class='icon icon-social-linkedin'></i>
<span class="label">Linkedin</span>
</a>
</li>

<!-- Github -->
<li class="social item hvr-grow-rotate">
<a target="blank" href="https://github.com/Kikobeats" title="Kikobeats on Github">
<a rel="me" target="blank" href="https://github.com/Kikobeats" title="Kikobeats on Github">
<i class='icon icon-social-github'></i>
<span class="label">Github</span>
</a>
Expand Down
3 changes: 2 additions & 1 deletion post.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
<span class="post reading-time"> ~ <span></span> read.</span>
</div>

<a alt="Tweet '{{title}}'" href="https://twitter.com/intent/tweet?text={{encode title}} {{encode ' » '}}&amp;url={{url absolute="true"}}" >
<a alt="Tweet '{{title}}'" rel="me"
href="javascript:window.open('http://twitter.com/share?hashtags={{tags separator="," autolink="false"}}&text={{title}} » ', '_blank', 'width=400,height=500');void(0);">
{{#if image}}<img id="post-image" src={{image}} alt="{{{title}}}">{{/if}}
<h1 class="icon-reverse icon-social-twitter-post" id="post-title">{{{title}}}</h1>
</a>
Expand Down

0 comments on commit eef7556

Please sign in to comment.