Merge pull request #1020 from padhg/omit-uri-scheme
Allow omission of URI Scheme in config.js url
This commit is contained in:
commit
930309363d
@ -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