mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-20 17:32:15 +03:00
c902d91c81
- This fits more closely, as this service is to so with rendering helpers and small parts - Whereas we want to use "rendering" for things concerned with rendering pages
11 lines
315 B
JavaScript
11 lines
315 B
JavaScript
// # Title Helper
|
|
// Usage: `{{title}}`
|
|
//
|
|
// Overrides the standard behaviour of `{[title}}` to ensure the content is correctly escaped
|
|
|
|
const {SafeString, escapeExpression} = require('../services/handlebars');
|
|
|
|
module.exports = function title() {
|
|
return new SafeString(escapeExpression(this.title || ''));
|
|
};
|