2014-10-10 18:54:07 +04:00
|
|
|
// # Meta Description Helper
|
|
|
|
// Usage: `{{meta_description}}`
|
|
|
|
//
|
|
|
|
// Page description used for sharing and SEO
|
|
|
|
//
|
|
|
|
// We use the name meta_description to match the helper for consistency:
|
|
|
|
// jscs:disable requireCamelCaseOrUpperCaseIdentifiers
|
|
|
|
|
2016-01-17 13:07:52 +03:00
|
|
|
var getMetaDataDescription = require('../data/meta/description');
|
2014-10-10 18:54:07 +04:00
|
|
|
|
2016-01-17 13:07:52 +03:00
|
|
|
function meta_description(options) {
|
2015-03-24 16:37:09 +03:00
|
|
|
options = options || {};
|
2014-10-10 18:54:07 +04:00
|
|
|
|
2016-01-17 13:07:52 +03:00
|
|
|
return getMetaDataDescription(this, options.data.root) || '';
|
|
|
|
}
|
2014-10-10 18:54:07 +04:00
|
|
|
|
|
|
|
module.exports = meta_description;
|