mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-08 02:52:39 -05:00
Merge pull request #5296 from emersonkeenan/master
Fix meta description for static pages
This commit is contained in:
commit
8adc8cb4d8
1 changed files with 1 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue