Skip to content

Commit

Permalink
Fix meta description for static pages
Browse files Browse the repository at this point in the history
closes #5295
- modified meta_description helper to match meta_title helper for ‘page’
context
  • Loading branch information
Emerson Keenan authored and Emerson Keenan committed May 20, 2015
1 parent efe3b5e commit 46ebbd8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/server/helpers/meta_description.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 46ebbd8

Please sign in to comment.