mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
658a6dd284
- the proxy should always be used to access other parts of Ghost, including the urlService etc - use consistent ES6 style for requires - minimise use of lodash where possible - remove circular dependency between proxy and template util - End goal here is to enforce that the only link between helpers + the rest of Ghost is the proxy
13 lines
452 B
JavaScript
13 lines
452 B
JavaScript
// # Meta Description Helper
|
|
// Usage: `{{meta_description}}`
|
|
//
|
|
// Page description used for sharing and SEO
|
|
const {metaData} = require('./proxy');
|
|
const {getMetaDataDescription} = metaData;
|
|
|
|
// We use the name meta_description to match the helper for consistency:
|
|
module.exports = function meta_description(options) { // eslint-disable-line camelcase
|
|
options = options || {};
|
|
|
|
return getMetaDataDescription(this, options.data.root) || '';
|
|
};
|