2014-10-10 09:54:07 -05:00
|
|
|
// # Meta Description Helper
|
|
|
|
// Usage: `{{meta_description}}`
|
|
|
|
//
|
|
|
|
// Page description used for sharing and SEO
|
2020-04-08 10:56:37 -05:00
|
|
|
const {metaData} = require('../services/proxy');
|
2020-03-30 15:23:02 -05:00
|
|
|
const {getMetaDataDescription} = metaData;
|
2014-10-10 09:54:07 -05:00
|
|
|
|
2017-11-01 08:44:54 -05:00
|
|
|
// We use the name meta_description to match the helper for consistency:
|
|
|
|
module.exports = function meta_description(options) { // eslint-disable-line camelcase
|
2015-03-24 08:37:09 -05:00
|
|
|
options = options || {};
|
2014-10-10 09:54:07 -05:00
|
|
|
|
2016-01-17 05:07:52 -05:00
|
|
|
return getMetaDataDescription(this, options.data.root) || '';
|
2017-11-01 08:44:54 -05:00
|
|
|
};
|