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