mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-24 06:35:49 +03:00
changes to support URI's without a scheme in config.js.
also removed "http:" from google fonts link to prevent a mixed content warning.
This commit is contained in:
parent
8ab4552ca0
commit
dc1cf3b509
@ -60,8 +60,8 @@ function validateConfigEnvironment() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check that our url is valid
|
// Check that our url is valid
|
||||||
parsedUrl = url.parse(config.url || 'invalid');
|
parsedUrl = url.parse(config.url || 'invalid', false, true);
|
||||||
if (!parsedUrl.protocol || !parsedUrl.host) {
|
if (!parsedUrl.host) {
|
||||||
errors.logError(new Error('Your site url in config.js is invalid.'), config.url, 'Please make sure this is a valid url before restarting');
|
errors.logError(new Error('Your site url in config.js is invalid.'), config.url, 'Please make sure this is a valid url before restarting');
|
||||||
return when.reject();
|
return when.reject();
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
<link rel="shortcut icon" href="/favicon.ico">
|
<link rel="shortcut icon" href="/favicon.ico">
|
||||||
<meta http-equiv="cleartype" content="on">
|
<meta http-equiv="cleartype" content="on">
|
||||||
|
|
||||||
<link rel="stylesheet" type='text/css' href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,700'>
|
<link rel="stylesheet" type='text/css' href='//fonts.googleapis.com/css?family=Open+Sans:400,300,700'>
|
||||||
<link rel="stylesheet" href="/ghost/css/screen.css">
|
<link rel="stylesheet" href="/ghost/css/screen.css">
|
||||||
{{{block "pageStyles"}}}
|
{{{block "pageStyles"}}}
|
||||||
</head>
|
</head>
|
||||||
|
Loading…
Reference in New Issue
Block a user