-
Notifications
You must be signed in to change notification settings - Fork 0
/
_config.ts
90 lines (87 loc) · 2.29 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
import lume from "lume/mod.ts";
import code_highlight from "lume/plugins/code_highlight.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 feed from "lume/plugins/feed.ts";
import netlifyCMS from "lume/plugins/netlify_cms.ts";
import * as colors from "https://esm.sh/[email protected]/colors";
const site = lume({
src: "./src",
location: new URL("https://turingev.de/"),
});
site
.use(netlifyCMS())
.use(jsx_preact())
.use(mdx())
.use(pagefind())
.use(code_highlight())
.use(sass())
.use(tailwindcss({
options: {
theme: {
screens: {
sm: "480px",
md: "720px",
lg: "920px",
xl: "1100px",
},
colors: {
...colors,
primary: colors.teal[700],
["primary-dark"]: colors.teal[600],
secondary: colors.gray[800],
["secondary-dark"]: colors.gray[700],
},
fontFamily: {
sans: ["Montserrat", "sans-serif"],
},
},
},
}))
.use(postcss())
//.use(minify_html())
.use(
feed({
title: "Turing e.V.",
output: ["/feed.rss", "/feed.json"],
query: "blog=true",
sort: "date=desc",
info: {
title: "=site.title",
description: "=site.description",
},
items: {
title: "=title",
description: "=excerpt",
},
}),
)
.copy("media")
.copy("assets", ".")
.copy("main.js")
.remoteFile(
"./code.css",
"https://cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/styles/github-dark.min.css",
)
.remoteFile(
"./phosphor-icons-light.css",
"https://unpkg.com/@phosphor-icons/[email protected]/src/light/style.css",
)
.remoteFile(
"./Phosphor-Light.woff2",
"https://unpkg.com/@phosphor-icons/[email protected]/src/light/Phosphor-Light.woff2",
)
.remoteFile(
"./daisyui.css",
"https://cdn.jsdelivr.net/npm/[email protected]/dist/full.css",
)
.remoteFile(
"./themes.css",
"https://cdn.jsdelivr.net/npm/[email protected]/dist/themes.css",
);
export default site;