mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
- 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
11 lines
383 B
JavaScript
11 lines
383 B
JavaScript
// # Meta Title Helper
|
|
// Usage: `{{meta_title}}`
|
|
//
|
|
// Page title used for sharing and SEO
|
|
const {metaData} = require('./proxy');
|
|
const {getMetaDataTitle} = metaData;
|
|
|
|
// We use the name meta_title to match the helper for consistency:
|
|
module.exports = function meta_title(options) { // eslint-disable-line camelcase
|
|
return getMetaDataTitle(this, options.data.root, options);
|
|
};
|