gpreview
Version:
Preview Ghost themes locally without a full Ghost installation
20 lines • 753 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ghostFootHelper = ghostFootHelper;
const handlebars_1 = __importDefault(require("handlebars"));
function ghostFootHelper(_options) {
const post = this.post || this['@post'];
const page = this.page || this['@page'];
const foot = [];
if (post?.codeinjection_foot) {
foot.push(post.codeinjection_foot);
}
else if (page?.codeinjection_foot) {
foot.push(page.codeinjection_foot);
}
return new handlebars_1.default.SafeString(foot.join('\n '));
}
//# sourceMappingURL=ghostFoot.js.map