[website] load external scripts without schema

Avoid loading external stylesheets and scripts over plain HTTP when
using HTTPS (the default in vagrantup.com).
This avoids browsers blocking the external resources due to mixed
content issues when HTTPS is used (e.g., "This page is trying to load
scripts from unauthenticated sources" warning shown in Chrome).
This commit is contained in:
Marcello Pogliani 2015-07-20 00:06:53 +02:00
parent e0a15edef5
commit c806b55f78
2 changed files with 4 additions and 4 deletions

View File

@ -22,8 +22,8 @@
<%= javascript_include_tag "vagrantup" %>
<!-- fonts -->
<link href='http://fonts.googleapis.com/css?family=Inconsolata' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="http://use.typekit.net/xfs6zus.js"></script>
<link href='//fonts.googleapis.com/css?family=Inconsolata' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="//use.typekit.net/xfs6zus.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
</head>
<body>

View File

@ -20,8 +20,8 @@
<%= javascript_include_tag "vagrantup" %>
<!-- fonts -->
<link href='http://fonts.googleapis.com/css?family=Inconsolata' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="http://use.typekit.net/xfs6zus.js"></script>
<link href='//fonts.googleapis.com/css?family=Inconsolata' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="//use.typekit.net/xfs6zus.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
<!-- Blog -->