diff --git a/core/server/helpers/index.js b/core/server/helpers/index.js index 9c2434ca9a..de419e7eed 100644 --- a/core/server/helpers/index.js +++ b/core/server/helpers/index.js @@ -291,12 +291,13 @@ coreHelpers.ghost_head = function (options) { /*jslint unparam:true*/ var head = [], majorMinor = /^(\d+\.)?(\d+)/, - trimmedVersion = this.version; + trimmedVersion = this.version, + blog = coreHelpers.ghost.blogGlobals(); trimmedVersion = trimmedVersion ? trimmedVersion.match(majorMinor)[0] : '?'; head.push(''); - head.push(''); + head.push(''); if (this.path) { head.push(''); } diff --git a/core/test/unit/server_helpers_index_spec.js b/core/test/unit/server_helpers_index_spec.js index 908f687eba..ffe71aa3fa 100644 --- a/core/test/unit/server_helpers_index_spec.js +++ b/core/test/unit/server_helpers_index_spec.js @@ -242,7 +242,7 @@ describe('Core Helpers', function () { it('returns meta tag string', function (done) { helpers.ghost_head.call({version: "0.3.0"}).then(function (rendered) { should.exist(rendered); - rendered.string.should.equal('\n'); + rendered.string.should.equal('\n'); done(); }); @@ -251,7 +251,7 @@ describe('Core Helpers', function () { it('returns meta tag string even if version is invalid', function () { var rendered = helpers.ghost_head.call({version: "0.9"}).then(function (rendered) { should.exist(rendered); - rendered.string.should.equal('\n'); + rendered.string.should.equal('\n'); }); }); });