diff options
author | Justin Mayer <entroP@gmail.com> | 2016-02-28 18:33:35 -0800 |
---|---|---|
committer | Justin Mayer <entroP@gmail.com> | 2016-02-28 18:33:35 -0800 |
commit | 27f0ef85962f055e28c41ca5f06679bd676f2022 (patch) | |
tree | 48b37921b8ac26bfbf1d22e090139de3eecb98f5 /tuxlite_tbs/templates/twitter.html | |
parent | fe87e70b5ad3e94d05a30fde394a0a5c5e85e697 (diff) | |
parent | 26e5670a56a1de383bb4fe43f1e7669418dfb66f (diff) | |
download | pelican-themes-27f0ef85962f055e28c41ca5f06679bd676f2022.tar.gz |
Merge pull request #375 from feld/master
More tuxlite_tbs improvements
Diffstat (limited to 'tuxlite_tbs/templates/twitter.html')
-rw-r--r-- | tuxlite_tbs/templates/twitter.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tuxlite_tbs/templates/twitter.html b/tuxlite_tbs/templates/twitter.html index 17b49e1..bc291b2 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-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 %} |