md-toy-blog
Version:
Very simple Markdown blog: serves your md as html without fancy databases. You will only spend time writing the actual data.
20 lines (19 loc) • 670 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
function isString(slug) {
return typeof slug !== 'undefined';
}
var loadDictElement = {
factory: function (_a) {
var compiledUserContentDir = _a.compiledUserContentDir;
return function () {
var postList = require(compiledUserContentDir + "/post-list");
var postSlugsList = postList.map(function (fileName) { return fileName.split('.').shift(); }).filter(isString);
return postSlugsList;
};
},
locateDeps: {
compiledUserContentDir: 'MTB_COMPILED_USER_CONTENT_DIR',
},
};
exports.default = loadDictElement;