-
Notifications
You must be signed in to change notification settings - Fork 0
/
_config.ts
35 lines (32 loc) · 930 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
34
35
import lume from "lume/mod.ts";
import "lume/types.ts";
import blog from "https://raw.githubusercontent.com/lumeland/theme-simple-blog/main/mod.ts";
import favicon from "lume/plugins/favicon.ts";
import minifyHTML from "lume/plugins/minify_html.ts";
import picture from "lume/plugins/picture.ts";
import transformImages from "lume/plugins/transform_images.ts";
const port = Deno.env.get("PORT") ? Number(Deno.env.get("PORT")) : 8000;
const site = lume({
location: new URL("https://foss.sanweb.info/"),
server: {
port: port
}
});
site
.ignore(
"README.md",
"CHANGELOG.md",
"node_modules",
"LICENSE",
"renovate.json",
"_cache"
)
.use(blog({}))
.copy("favicon.svg")
.copy("icon-foss.png")
.use(favicon())
.use(minifyHTML())
.loadAssets([".css", ".png", ".jpg", ".svg", ".webp", ".gif", ".jpeg", ".avif"])
.use(picture())
.use(transformImages());
export default site;