UNPKG

@mdfriday/foundry

Version:

The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.

50 lines 1.21 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Meta = void 0; class Meta { constructor(list = "always", parameters = {}, weight = 0, date = new Date()) { this.list = list; this.parameters = parameters; this.weight = weight; this.date = date; } description() { return ""; } params() { return this.parameters; } pageWeight() { return this.weight; } pageDate() { return this.date; } publishDate() { return this.pageDate(); } async relatedKeywords(cfg) { // TODO: Implement related keywords logic return []; } shouldList(global) { switch (this.list) { case "always": return true; case "never": return false; case "local": return !global; default: return true; } } shouldListAny() { return this.shouldList(true) || this.shouldList(false); } noLink() { return false; // TODO: Update based on configuration } } exports.Meta = Meta; //# sourceMappingURL=pagemeta.js.map