miom.space/_config.ts

31 lines
556 B
TypeScript

import lume from "https:/deno.land/x/lume/mod.ts";
import postcss from "https:/deno.land/x/lume/plugins/postcss.ts";
const markdown = { breaks: true };
const site = lume({}, { markdown });
site.use(postcss());
site.loadAssets([
".png",
".jpg",
".svg",
".pdf",
".woff2",
".woff",
".ttf",
".otf",
".js",
]);
site.filter("title", (value = '') => value + (value ? " | " : "") + "MiOM");
site.filter("objectToArray", (value = {}) => Object.keys(value)
.sort()
.map(key => value[key])
.filter(val => !!val)
);
export default site;