mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-23 22:11:09 +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
|
||||
parsedUrl = url.parse(config.url || 'invalid');
|
||||
if (!parsedUrl.protocol || !parsedUrl.host) {
|
||||
parsedUrl = url.parse(config.url || 'invalid', false, true);
|
||||
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');
|
||||
return when.reject();
|
||||
}
|
||||
|
@ -16,7 +16,7 @@
|
||||
<link rel="shortcut icon" href="/favicon.ico">
|
||||
<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">
|
||||
{{{block "pageStyles"}}}
|
||||
</head>
|
||||
|
Loading…
Reference in New Issue
Block a user