-
Notifications
You must be signed in to change notification settings - Fork 1
/
_config.ts
61 lines (57 loc) · 1.36 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import lume from "lume/mod.ts";
import lightningcss from "lume/plugins/lightningcss.ts";
import minify_html from "lume/plugins/minify_html.ts";
import tailwindcss from "lume/plugins/tailwindcss.ts";
import postcss from "lume/plugins/postcss.ts";
import multilanguage from "lume/plugins/multilanguage.ts";
import jsx_preact from "lume/plugins/jsx_preact.ts";
import typography from "npm:@tailwindcss/typography";
import anchor from "npm:markdown-it-anchor";
const markdown = {
plugins: [[anchor, { level: 2 }]],
keepDefaultPlugins: true,
};
const site = lume(
{
src: "./content",
},
{
markdown,
}
);
site.use(
multilanguage({
extensions: [".html", ".tsx"],
languages: ["en", "de"],
defaultLanguage: "en",
})
);
site.use(minify_html());
site.use(
tailwindcss({
extensions: [".html", ".tsx"],
options: {
plugins: [typography],
theme: {
colors: {
background: "#3b579a",
header: "#b6e1f9",
white: "#fff",
cardBackground: "hsla(0,0%,100%,.8)",
green: "#4caf50",
footerBackground: "#fdf2d7",
dark: "#222",
},
fontFamily: {
mono: ["Space Mono", "monospace"],
},
},
},
})
);
site.use(postcss());
site.use(jsx_preact());
site.use(lightningcss());
site.copy("assets");
site.copy("favicon.ico");
export default site;