-
Notifications
You must be signed in to change notification settings - Fork 0
/
_config.ts
45 lines (42 loc) · 1.12 KB
/
_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
36
37
38
39
40
41
42
43
44
45
import lume from "lume/mod.ts";
import jsx_preact from "lume/plugins/jsx_preact.ts";
import mdx from "lume/plugins/mdx.ts";
import minify_html from "lume/plugins/minify_html.ts";
import pagefind from "lume/plugins/pagefind.ts";
import postcss from "lume/plugins/postcss.ts";
import tailwindcss from "lume/plugins/tailwindcss.ts";
import sass from "lume/plugins/sass.ts";
import multilanguage from "lume/plugins/multilanguage.ts";
const site = lume({
src: "./content",
});
site
.use(
multilanguage({
languages: ["en", "de"],
defaultLanguage: "de",
}),
)
.use(jsx_preact())
.use(mdx())
.use(pagefind())
.use(sass())
// .use(tailwindcss())
.use(postcss())
// .use(minify_html())
.copy("media")
.copy("assets", ".")
.copy("main.js")
.remoteFile(
"./code.css",
"https://cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/styles/github.min.css",
)
.remoteFile(
"./bootstrap.css",
"https://esm.sh/[email protected]/dist/css/bootstrap.min.css",
)
.remoteFile(
"./darktheme.css",
"https://esm.sh/[email protected]/css/darktheme.css",
);
export default site;