gpreview
Version:
Preview Ghost themes locally without a full Ghost installation
14 lines • 428 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.urlHelper = urlHelper;
function urlHelper(options) {
const post = this.post || this.page || this;
const site = this.site || this['@site'];
const url = post.url || '';
const absolute = options.hash?.absolute;
if (absolute && site?.url) {
return site.url + url;
}
return url;
}
//# sourceMappingURL=url.js.map