Ghost/core/server/helpers/meta_title.js
Mante Bridts 7ed822cc0c 🐛Fixed i18n for the {{meta_title}} helper (#9468)
closes #9466

- make 'page' in the meta title translatable through subexpression in the meta title helper
- e.g. `{{meta_title page=(t....)}}`
2018-03-19 09:48:07 +01:00

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);
};