-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathmod.ts
More file actions
49 lines (41 loc) · 1.18 KB
/
mod.ts
File metadata and controls
49 lines (41 loc) · 1.18 KB
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 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 = [
// CSS
"css/general.css",
"css/sidebar.css",
"css/blockquotes.css",
"css/palette.css",
"css/font-awesome.css",
// JS
"js/theme-switcher.js",
"js/hamburger.js",
"js/hierarchy.js",
// Overridable
"_includes/footer.njk",
"_includes/head.njk",
"_includes/sidebar.njk",
// Internal
"_includes/components/search.njk",
"_includes/components/toc.njk",
"_includes/components/breadcrumbs.njk",
"_includes/layout/body.njk",
"_includes/layout/html.njk",
"_includes/partials/nav.njk",
"_includes/partials/footer.njk",
"_includes/partials/sidebar.njk",
"_includes/page.njk",
"_includes/page_right.njk",
"_data.json",
];
for (const file of files) {
site.remoteFile(file, import.meta.resolve(`./src/${file}`));
}
};
}