diff --git a/core/server/helpers/index.js b/core/server/helpers/index.js index f8807942f7..add7d41d2e 100644 --- a/core/server/helpers/index.js +++ b/core/server/helpers/index.js @@ -385,14 +385,14 @@ coreHelpers.ghost_foot = function (options) { coreHelpers.meta_title = function (options) { /*jslint unparam:true*/ - var title, + var title = "", blog; if (_.isString(this.relativeUrl)) { if (!this.relativeUrl || this.relativeUrl === '/' || this.relativeUrl === '' || this.relativeUrl.match(/\/page/)) { blog = config.theme(); title = blog.title; - } else { + } else if (this.post) { title = this.post.title; } }