-
Notifications
You must be signed in to change notification settings - Fork 13
/
_config.ts
49 lines (46 loc) · 1.25 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
import lume from "lume/mod.ts";
import date from "lume/plugins/date.ts";
import postcss from "lume/plugins/postcss.ts";
import codeHighlight from "lume/plugins/code_highlight.ts";
import basePath from "lume/plugins/base_path.ts";
import slugifyUrls from "lume/plugins/slugify_urls.ts";
import resolveUrls from "lume/plugins/resolve_urls.ts";
import decapCMS from "lume/plugins/decap_cms.ts";
import pageFind from "lume/plugins/pagefind.ts";
import sitemap from "lume/plugins/sitemap.ts";
import feed from "lume/plugins/feed.ts";
import nunjucks from "lume/plugins/nunjucks.ts";
const site = lume({
location: new URL("https://example.com/"),
});
site
.ignore("README.md")
.copy("img")
.use(postcss())
.use(date())
.use(codeHighlight())
.use(basePath())
.use(sitemap())
.use(nunjucks())
.use(pageFind({
ui: {
resetStyles: false,
highlightParam: "highlight",
},
}))
.use(slugifyUrls({ alphanumeric: false }))
.use(feed({
output: ["/feed.json", "/feed.xml"],
query: "type=posts",
info: {
title: "=site.title",
description: "=site.description",
},
items: {
title: "=title",
content: "$.post-body",
},
}))
.use(resolveUrls())
.use(decapCMS({ identity: "netlify" }));
export default site;