2022-03-31 18:18:04 +00:00
|
|
|
import lume from "https://deno.land/x/lume@v1.6.4/mod.ts";
|
|
|
|
import postcss from "https:/deno.land/x/lume@v1.6.4/plugins/postcss.ts";
|
2021-10-22 11:13:16 +00:00
|
|
|
|
2022-03-31 18:11:56 +00:00
|
|
|
const markdown = { options: { breaks: true } };
|
2021-10-22 11:13:16 +00:00
|
|
|
|
|
|
|
const site = lume({}, { markdown });
|
|
|
|
|
|
|
|
site.use(postcss());
|
|
|
|
|
|
|
|
site.loadAssets([
|
|
|
|
".png",
|
|
|
|
".jpg",
|
|
|
|
".svg",
|
|
|
|
".pdf",
|
|
|
|
".woff2",
|
2021-10-22 16:05:00 +00:00
|
|
|
".woff",
|
|
|
|
".ttf",
|
|
|
|
".otf",
|
|
|
|
".js",
|
2021-10-22 22:09:23 +00:00
|
|
|
".txt",
|
2021-10-22 11:13:16 +00:00
|
|
|
]);
|
|
|
|
|
|
|
|
site.filter("title", (value = '') => value + (value ? " | " : "") + "MiOM");
|
|
|
|
|
2021-10-22 21:42:44 +00:00
|
|
|
site.filter("objectToArray", (value = {}) => Object.keys(value)
|
|
|
|
.sort()
|
|
|
|
.map(key => value[key])
|
|
|
|
.filter(val => !!val)
|
|
|
|
);
|
|
|
|
|
2021-10-22 11:13:16 +00:00
|
|
|
export default site;
|