aboutsummaryrefslogtreecommitdiffstats
path: root/tuxlite_tbs/templates/twitter.html
diff options
context:
space:
mode:
authorMark Felder <feld@feld.me>2016-02-23 14:49:46 -0600
committerMark Felder <feld@feld.me>2016-02-23 14:49:46 -0600
commit26e5670a56a1de383bb4fe43f1e7669418dfb66f (patch)
tree8271e1a740351887d4314202cd7fe12fe179d5a5 /tuxlite_tbs/templates/twitter.html
parent81e3d8116851db5ada8ad066d3c68eaea71fa24e (diff)
downloadpelican-themes-26e5670a56a1de383bb4fe43f1e7669418dfb66f.tar.gz
twitter should post the article title without including site name
Diffstat (limited to 'tuxlite_tbs/templates/twitter.html')
-rw-r--r--tuxlite_tbs/templates/twitter.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/tuxlite_tbs/templates/twitter.html b/tuxlite_tbs/templates/twitter.html
index a7856e1..bc291b2 100644
--- a/tuxlite_tbs/templates/twitter.html
+++ b/tuxlite_tbs/templates/twitter.html
@@ -1,4 +1,4 @@
{% if TWITTER_USERNAME %}
-<a href="https://twitter.com/share" class="twitter-share-button" data-via="{{TWITTER_USERNAME}}">Tweet</a>
+<a href="https://twitter.com/share" class="twitter-share-button" data-text="{{article.title}}" data-via="{{TWITTER_USERNAME}}">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
{% endif %}