Skip to content

Commit

Permalink
use protocal-aware urls to adapt to https blogs
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenPCG committed May 25, 2014
1 parent 11a4fc7 commit c2d8853
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion templates/_includes/disqus_script.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{% endif %}
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
dsq.src = "//" + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
Expand Down
2 changes: 1 addition & 1 deletion templates/_includes/gplus_sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<section class="googleplus{% if GOOGLE_PLUS_HIDDEN %} googleplus-hidden{% endif %}">
<h1>
<a href="https://plus.google.com/{{ GOOGLE_PLUS_ID }}?rel=author">
<img src="http://www.google.com/images/icons/ui/gprofile_button-32.png" width="32" height="32">
<img src="//www.google.com/images/icons/ui/gprofile_button-32.png" width="32" height="32">
Google+
</a>
</h1>
Expand Down
2 changes: 1 addition & 1 deletion templates/_includes/navigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


{% if SEARCH_BOX %}
<form action="{{ SITESEARCH|default('http://google.com/search') }}" method="get">
<form action="{{ SITESEARCH|default('//google.com/search') }}" method="get">
<fieldset role="search">
{% if 'duckduckgo.com' in SITESEARCH|lower %}
<input type="hidden" name="sites" value="{{SITEURL|replace('https://','')|replace('http://','') }}" />
Expand Down
4 changes: 2 additions & 2 deletions templates/_includes/piwik.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script>
<noscript><p><img src="http://{{ PIWIK_URL }}/piwik.php?idsite={{ PIWIK_SITE_ID }}" style="border:0" alt="" /></p></noscript>
{% endif %}
<noscript><p><img src="//{{ PIWIK_URL }}/piwik.php?idsite={{ PIWIK_SITE_ID }}" style="border:0" alt="" /></p></noscript>
{% endif %}
2 changes: 1 addition & 1 deletion templates/_includes/twitter_sharing.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
<script src="{{ SITEURL }}/theme/js/ender.js"></script>
<script src="{{ SITEURL }}/theme/js/octopress.js" type="text/javascript"></script>

<link href="http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic"
<link href="//fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic"
rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic"
<link href="//fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic"
rel="stylesheet" type="text/css">
{% if article and article.latex %}
{{ article.latex }}
Expand Down

0 comments on commit c2d8853

Please sign in to comment.