0
Fork 0
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:
Hannah Wolfe 2013-11-28 13:03:05 +00:00
parent 050466e23c
commit 6bb92b4394

View file

@ -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
});
});