Merge pull request #1286 from SamWhited/master

Use protocol relative URL's for Twitter
This commit is contained in:
Parker Moore 2013-06-26 04:13:48 -07:00
commit 1bcfe84ded
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
<div class="sharing"> <div class="sharing">
{% if site.twitter_tweet_button %} {% if site.twitter_tweet_button %}
<a href="http://twitter.com/share" class="twitter-share-button" data-url="{{ site.url }}{{ page.url }}" data-via="{{ site.twitter_user }}" data-counturl="{{ site.url }}{{ page.url }}" >Tweet</a> <a href="//twitter.com/share" class="twitter-share-button" data-url="{{ site.url }}{{ page.url }}" data-via="{{ site.twitter_user }}" data-counturl="{{ site.url }}{{ page.url }}" >Tweet</a>
{% endif %} {% endif %}
{% if site.google_plus_one %} {% if site.google_plus_one %}
<div class="g-plusone" data-size="{{ site.google_plus_one_size }}"></div> <div class="g-plusone" data-size="{{ site.google_plus_one_size }}"></div>

View File

@ -4,7 +4,7 @@
var twitterWidgets = document.createElement('script'); var twitterWidgets = document.createElement('script');
twitterWidgets.type = 'text/javascript'; twitterWidgets.type = 'text/javascript';
twitterWidgets.async = true; twitterWidgets.async = true;
twitterWidgets.src = 'http://platform.twitter.com/widgets.js'; twitterWidgets.src = '//platform.twitter.com/widgets.js';
document.getElementsByTagName('head')[0].appendChild(twitterWidgets); document.getElementsByTagName('head')[0].appendChild(twitterWidgets);
})(); })();
</script> </script>