Ghost/core/server/helpers/meta_description.js

18 lines
480 B
JavaScript
Raw Normal View History

// # 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
var getMetaDataDescription = require('../data/meta/description');
function meta_description(options) {
options = options || {};
return getMetaDataDescription(this, options.data.root) || '';
}
module.exports = meta_description;