mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 11:22:19 +03:00
7ed822cc0c
closes #9466 - make 'page' in the meta title translatable through subexpression in the meta title helper - e.g. `{{meta_title page=(t....)}}`
12 lines
395 B
JavaScript
12 lines
395 B
JavaScript
// # Meta Title Helper
|
|
// Usage: `{{meta_title}}`
|
|
//
|
|
// Page title used for sharing and SEO
|
|
var proxy = require('./proxy'),
|
|
getMetaDataTitle = proxy.metaData.getMetaDataTitle;
|
|
|
|
// We use the name meta_title to match the helper for consistency:
|
|
module.exports = function meta_title(options) { // eslint-disable-line camelcase
|
|
return getMetaDataTitle(this, options.data.root, options);
|
|
};
|