-
Notifications
You must be signed in to change notification settings - Fork 0
/
_config.js
45 lines (39 loc) · 1.15 KB
/
_config.js
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 redirects from "lume/plugins/redirects.ts";
import date from "lume/plugins/date.ts";
import codeHighlight from "lume/plugins/code_highlight.ts";
import feed from "lume/plugins/feed.ts";
import lang_xml from "npm:highlight.js/lib/languages/xml";
import lang_css from "npm:highlight.js/lib/languages/css";
import lang_javascript from "npm:highlight.js/lib/languages/javascript";
import lang_bash from "npm:highlight.js/lib/languages/bash";
const prod = Deno.env.get("DENO_ENV") === "prod";
const site = lume({
src: "./src",
location: new URL('https://carlrafting.com')
});
site.use(redirects());
site.use(date());
site.use(codeHighlight({
languages: {
xml: lang_xml,
css: lang_css,
javascript: lang_javascript,
bash: lang_bash,
},
}));
site.use(feed({
output: ["feed.xml", "feed.json"],
query: "type=post",
info: {
title: "Carl Räftings WWW",
description: "Feed for Carl Räftings WWW",
generator: false,
},
}));
site.data("prod", prod === true);
site.copy([".css", ".js"]);
site.copy("assets/manifest.webmanifest");
site.copyRemainingFiles();
// console.log({ site });
export default site;