Skip to content
Browse files

A better share link for twitter

1 parent edcacaa commit 08b81e79f7c0fd4ec2b5f94674e53b1d051e4c3e @jk-gan jk-gan committed
Showing with 3 additions and 2 deletions.
  1. +2 −1 Gemfile.lock
  2. +1 −1 _layouts/post.html
View
3 Gemfile.lock
@@ -1,4 +1,5 @@
GEM
+ remote: https://rubygems.org/
specs:
celluloid (0.16.0)
timers (~> 4.0.0)
@@ -46,4 +47,4 @@ DEPENDENCIES
jekyll-paginate
BUNDLED WITH
- 1.10.5
+ 1.11.2
View
2 _layouts/post.html
@@ -13,7 +13,7 @@ <h1 class="post-title">{{ page.title }}</h1>
</section>
<footer class="post-footer">
<section class="share">
- <a class="icon" href="http://twitter.com/share?text={{page.title | cgi_escape}}&amp;url={{site.url}}{{page.id}}" target="_blank">
+ <a class="icon" href="https://twitter.com/intent/tweet?url={{ site.url }}{{ page.url }}&text={{ page.title }}&via={{ site.twitter_username }}"target="_blank">
Share on
{% include icon-twitter.html %}
</a>

0 comments on commit 08b81e7

Please sign in to comment.
Something went wrong with that request. Please try again.