@63pokupki/nodejs-common
Version:
Common nodejs functionality
26 lines • 715 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SeoBase = void 0;
/**
* Вывод сео заголовков и прочего
*/
class SeoBase {
constructor(ctx, conf) {
this.url = ctx.req.url;
this.conf = conf;
this.ctx = ctx;
this.title = this.conf.defaultTitle;
this.description = this.conf.defaultDescription;
this.keywords = this.conf.defaultKeywords;
/* Open Graph */
this.og = this.conf.defaultOg;
}
/**
* Перезагрузить на дефолтные
*/
reload() {
this.og = this.conf.defaultOg;
}
}
exports.SeoBase = SeoBase;
//# sourceMappingURL=Seo.js.map