From 46ebbd8de249099344172dd806094b63bad2efa2 Mon Sep 17 00:00:00 2001 From: Emerson Keenan Date: Wed, 20 May 2015 13:05:33 +1000 Subject: [PATCH] Fix meta description for static pages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closes #5295 - modified meta_description helper to match meta_title helper for ‘page’ context --- core/server/helpers/meta_description.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/server/helpers/meta_description.js b/core/server/helpers/meta_description.js index 37eb363f6f..9be31e6c76 100644 --- a/core/server/helpers/meta_description.js +++ b/core/server/helpers/meta_description.js @@ -27,10 +27,8 @@ meta_description = function (options) { description = this.author.bio; } else if (_.contains(context, 'tag') && this.tag) { description = this.tag.meta_description; - } else if (_.contains(context, 'post') && this.post) { + } else if ((_.contains(context, 'post') || _.contains(context, 'page')) && this.post) { description = this.post.meta_description; - } else if (_.contains(context, 'page') && this.page) { - description = this.page.meta_description; } return filters.doFilter('meta_description', description).then(function (description) {