website/_config.ts

42 lines
824 B
TypeScript
Raw Normal View History

2023-07-23 16:04:28 -04:00
import lume from "lume/mod.ts";
import jsx from "lume/plugins/jsx.ts";
import nav from "lume/plugins/nav.ts";
import sass from "lume/plugins/sass.ts";
2023-08-05 20:13:10 -04:00
import feed from "lume/plugins/feed.ts";
2023-07-23 16:04:28 -04:00
const site = lume({
2023-08-05 20:13:10 -04:00
location: new URL("https://www.fosterhangdaan.com/"),
2023-07-23 16:04:28 -04:00
server: {
port: 8080,
},
});
2023-10-02 19:41:35 -04:00
site.ignore("README.md", "README.org", "LICENSE.txt", "LICENSE.md");
2023-07-23 16:21:17 -04:00
site.copy("static", ".");
2023-11-28 16:19:58 -05:00
site.copy([".png", ".jpg", ".jpeg"]);
2023-07-23 16:04:28 -04:00
site.use(jsx());
site.use(nav());
site.use(sass());
2023-08-05 20:13:10 -04:00
site.use(feed({
query: "type=post",
output: [
"/blog/feed.rss",
"/blog/feed.json",
],
info: {
title: "Foster Hangdaan's Blog",
description: "My thoughts and ideas.",
date: new Date(),
2023-08-06 16:45:45 -04:00
lang: "en",
2023-08-05 20:13:10 -04:00
},
items: {
title: "=title",
description: "=description",
}
}));
2023-07-23 16:04:28 -04:00
export default site;