0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Merge pull request #2004 from ErisDS/issue-1992

Adding guard to meta_title
This commit is contained in:
Hannah Wolfe 2014-01-22 12:38:53 -08:00
commit cccc19842e

View file

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