-
Notifications
You must be signed in to change notification settings - Fork 0
/
_config.ts
33 lines (27 loc) · 936 Bytes
/
_config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import lume from "lume/mod.ts";
import date from "lume/plugins/date.ts";
import codeHighlight from "lume/plugins/code_highlight.ts";
import imagick from "lume/plugins/imagick.ts";
import resolveUrls from "lume/plugins/resolve_urls.ts";
// fixes a bug with days being off by one - https://github.com/lumeland/lume/issues/58#issuecomment-817396966
Deno.env.set("TZ", "Z")
const site = lume({
location: new URL("https://bradharris.dev")
});
site.use(resolveUrls());
site.use(imagick());
site.use(date());
site.use(codeHighlight({
options: {}
}))
site.copy("images");
site.copy("assets/styles", "/styles");
site.copy("assets/favicons", ".");
site.copy("assets/scripts", "/scripts");
site.copy("assets/icons", "/icons");
site.copy("assets/post-heros", "/post-heros");
site.copy("assets/post-thumbnails", "/post-thumbnails");
site.copy("CNAME");
site.data('now', new Date());
site.data('dev', site.options.dev)
export default site;