Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #1286 from SamWhited/master

Use protocol relative URL's for Twitter
  • Loading branch information...
commit 1bcfe84dedca63ffe5e653e3f7479abc6eef23f2 2 parents bc67475 + 0978977
Parker Moore parkr authored
2  .themes/classic/source/_includes/post/sharing.html
View
@@ -1,6 +1,6 @@
<div class="sharing">
{% 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 %}
{% if site.google_plus_one %}
<div class="g-plusone" data-size="{{ site.google_plus_one_size }}"></div>
2  .themes/classic/source/_includes/twitter_sharing.html
View
@@ -4,7 +4,7 @@
var twitterWidgets = document.createElement('script');
twitterWidgets.type = 'text/javascript';
twitterWidgets.async = true;
- twitterWidgets.src = 'http://platform.twitter.com/widgets.js';
+ twitterWidgets.src = '//platform.twitter.com/widgets.js';
document.getElementsByTagName('head')[0].appendChild(twitterWidgets);
})();
</script>
Please sign in to comment.
Something went wrong with that request. Please try again.