-
Notifications
You must be signed in to change notification settings - Fork 26
/
mod.ts
47 lines (42 loc) · 1.25 KB
/
mod.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
import plugins, { Options } from "./plugins.ts";
import "lume/types.ts";
export type { Options } from "./plugins.ts";
export default function (options: Partial<Options> = {}) {
return (site: Lume.Site) => {
// Configure the site
site.use(plugins(options));
// Add remote files
const files = [
"_includes/css/fonts.css",
"_includes/css/navbar.css",
"_includes/css/page.css",
"_includes/css/post-list.css",
"_includes/css/post.css",
"_includes/css/reset.css",
"_includes/css/badge.css",
"_includes/css/variables.css",
"_includes/css/search.css",
"_includes/css/comments.css",
"_includes/layouts/archive_result.vto",
"_includes/layouts/archive.vto",
"_includes/layouts/base.vto",
"_includes/layouts/page.vto",
"_includes/layouts/post.vto",
"_includes/templates/post-details.vto",
"_includes/templates/post-list.vto",
"posts/_data.yml",
"_data.yml",
"_data/i18n.yml",
"404.md",
"archive_result.page.js",
"archive.page.js",
"index.vto",
"styles.css",
"favicon.png",
"js/main.js",
];
for (const file of files) {
site.remoteFile(file, import.meta.resolve(`./src/${file}`));
}
};
}