-
Notifications
You must be signed in to change notification settings - Fork 0
/
mod.ts
43 lines (38 loc) · 1.08 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
import plugins, { Options } from "./plugins.ts";
import type { Site } from "lume/core.ts";
export type { Options } from "./plugins.ts";
export default function (options: Partial<Options> = {}) {
return (site: Site) => {
// Configure the site
site.use(plugins(options));
// Add remote files
const files = [
"_includes/css/*",
"_includes/layouts/archive_result.njk",
"_includes/layouts/archive.njk",
"_includes/layouts/base.njk",
"_includes/layouts/home.njk",
"_includes/layouts/page.njk",
"_includes/layouts/post.njk",
"_includes/templates/post-details.njk",
"_includes/templates/post-list.njk",
"media/*",
"types/*",
"fonts/inter.woff2",
"fonts/inter-italic.woff2",
"fonts/dmsans.woff2",
"posts/_data.yml",
"_data.yml",
"404.md",
"archive_result.page.js",
"archive.page.js",
"index.njk",
"styles.css",
"favicon.png",
"CNAME"
];
for (const file of files) {
site.remoteFile(file, import.meta.resolve(`./src/${file}`));
}
};
}