2014-10-10 18:54:07 +04:00
|
|
|
// # Meta Title Helper
|
|
|
|
// Usage: `{{meta_title}}`
|
|
|
|
//
|
|
|
|
// Page title used for sharing and SEO
|
2017-04-04 19:07:35 +03:00
|
|
|
var proxy = require('./proxy'),
|
|
|
|
getMetaDataTitle = proxy.metaData.getMetaDataTitle;
|
2014-10-10 18:54:07 +04:00
|
|
|
|
2017-11-01 16:44:54 +03:00
|
|
|
// We use the name meta_title to match the helper for consistency:
|
|
|
|
module.exports = function meta_title(options) { // eslint-disable-line camelcase
|
2018-03-19 11:48:07 +03:00
|
|
|
return getMetaDataTitle(this, options.data.root, options);
|
2017-11-01 16:44:54 +03:00
|
|
|
};
|