-
Notifications
You must be signed in to change notification settings - Fork 4
/
mod.ts
29 lines (25 loc) · 719 Bytes
/
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
import plugins from "./plugins.ts";
import "lume/types.ts";
import type { Options } from "./plugins.ts";
export default function (options?: Options) {
return (site: Lume.Site) => {
// Configure the site
site.use(plugins(options));
// Add remote files
const files = [
"_includes/css/menu.css",
"_includes/css/updates.css",
"_includes/styles.css",
"_includes/templates/breadcrumb.vto",
"_includes/layout.vto",
"_includes/templates/menu_item.vto",
"_includes/templates/menu.vto",
"menu.js",
"menu.page.ts",
"styles.css",
];
for (const file of files) {
site.remoteFile(file, import.meta.resolve(`./src/${file}`));
}
};
}