Skip to content

Commit 0cb0f5e

Browse files
DirectorXdaattali
authored andcommitted
added page title in twitter social share button (daattali#113)
1 parent 1885ea0 commit 0cb0f5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_includes/social-share.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<!--- Share on Twitter -->
1313
{% if site.share-links-active.twitter %}
14-
<a href="https://twitter.com/intent/tweet?text={{ site.url }}{{ page.url }}"
14+
<a href="https://twitter.com/intent/tweet?text={{ page.title | url_encode }}+{{ site.url }}{{ page.url }}"
1515
class="btn btn-social-icon btn-twitter" title="Share on Twitter">
1616
<span class="fa fa-fw fa-twitter" aria-hidden="true"></span>
1717
</a>
@@ -43,4 +43,4 @@
4343

4444
</section>
4545

46-
{% endif %}
46+
{% endif %}

0 commit comments

Comments
 (0)