aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Felder <feld@feld.me>2016-02-23 14:44:19 -0600
committerMark Felder <feld@feld.me>2016-02-23 14:44:19 -0600
commit81e3d8116851db5ada8ad066d3c68eaea71fa24e (patch)
tree54c56e7b94c1b9a6e93084e4d65fb785e527f03c
parent5792a2e3f67b806257fae40d23f6b24789c3b7e8 (diff)
downloadpelican-themes-81e3d8116851db5ada8ad066d3c68eaea71fa24e.zip
pelican-themes-81e3d8116851db5ada8ad066d3c68eaea71fa24e.tar.gz
pelican-themes-81e3d8116851db5ada8ad066d3c68eaea71fa24e.tar.bz2
Update twitter template to match current twitter api docs
-rw-r--r--tuxlite_tbs/templates/twitter.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/tuxlite_tbs/templates/twitter.html b/tuxlite_tbs/templates/twitter.html
index 17b49e1..a7856e1 100644
--- a/tuxlite_tbs/templates/twitter.html
+++ b/tuxlite_tbs/templates/twitter.html
@@ -1,3 +1,4 @@
{% if TWITTER_USERNAME %}
-<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-text="{{article.title}}" data-via="{{TWITTER_USERNAME}}">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
+<a href="https://twitter.com/share" class="twitter-share-button" 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 %}