website/_config.ts

61 lines
1.4 KiB
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";
import code_highlight from "lume/plugins/code_highlight.ts";
import toc from "https://deno.land/x/lume_markdown_plugins@v0.6.0/toc.ts";
import lang_typescript from "npm:highlight.js/lib/languages/typescript";
import lang_javascript from "npm:highlight.js/lib/languages/javascript";
import lang_bash from "npm:highlight.js/lib/languages/bash";
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",
}
}));
site.use(code_highlight({
languages: {
typescript: lang_typescript,
javascript: lang_javascript,
bash: lang_bash,
}
}));
site.use(toc({
slugify: {
separator: "-",
lowercase: true,
},
}));
2023-07-23 16:04:28 -04:00
export default site;