A better share link for twitter #12
+3
−2
jk-gan
commented
ageitgey
commented on an outdated diff
_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}}&url={{site.url}}{{page.id}}" target="_blank"> | ||
+ <a class="icon" href="https://twitter.com/intent/tweet?url={{ site.url }}{{ page.id }}&text={{ page.title }}&via={{ site.twitter_username }}" target="_blank"> |
Can you add the
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(*) modified the url for sharing to twitter