mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-05 09:50:34 +03:00
Merge pull request #5296 from emersonkeenan/master
Fix meta description for static pages
This commit is contained in:
commit
8adc8cb4d8
@ -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…
Reference in New Issue
Block a user