mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Swapping url.resolve back out
This commit is contained in:
parent
050466e23c
commit
6bb92b4394
1 changed files with 1 additions and 2 deletions
|
@ -2,7 +2,6 @@ var _ = require('underscore'),
|
|||
moment = require('moment'),
|
||||
downsize = require('downsize'),
|
||||
path = require('path'),
|
||||
url = require('url'),
|
||||
when = require('when'),
|
||||
hbs = require('express-hbs'),
|
||||
errors = require('../errorHandling'),
|
||||
|
@ -244,7 +243,7 @@ coreHelpers.ghostScriptTags = function () {
|
|||
|
||||
scriptFiles = _.map(scriptFiles, function (fileName) {
|
||||
return scriptTemplate({
|
||||
source: url.resolve(blog.path, '/built/scripts/') + fileName,
|
||||
source: (blog.path === '/' ? '' : blog.path) + '/built/scripts/' + fileName,
|
||||
version: version
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue