mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Removed leftover v0.1 meta title helper code
This commit is contained in:
parent
527dba8839
commit
cbca480b97
1 changed files with 0 additions and 8 deletions
|
@ -47,14 +47,6 @@ function getTitle(data, root, options) {
|
||||||
} else {
|
} else {
|
||||||
title = data.post.meta_title || data.post.title;
|
title = data.post.meta_title || data.post.title;
|
||||||
}
|
}
|
||||||
// Page title v0.1
|
|
||||||
} else if (_.includes(context, 'page') && data.post) {
|
|
||||||
if (options && options.property) {
|
|
||||||
postSdTitle = options.property + '_title';
|
|
||||||
title = data.post[postSdTitle] || '';
|
|
||||||
} else {
|
|
||||||
title = data.post.meta_title || data.post.title;
|
|
||||||
}
|
|
||||||
// Page title v2
|
// Page title v2
|
||||||
} else if (_.includes(context, 'page') && data.page) {
|
} else if (_.includes(context, 'page') && data.page) {
|
||||||
if (options && options.property) {
|
if (options && options.property) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue