-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy path.eleventy.js
More file actions
40 lines (36 loc) · 1.18 KB
/
.eleventy.js
File metadata and controls
40 lines (36 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
const syntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight");
module.exports = function (eleventyConfig) {
eleventyConfig.ignores.add("./src/_sass");
eleventyConfig.ignores.add("./src/_scripts");
eleventyConfig.addWatchTarget("./src/css");
eleventyConfig.addPassthroughCopy({ "./src/_css/": "/css/" });
eleventyConfig.addPassthroughCopy({ "./src/_public": "/" });
eleventyConfig.addPassthroughCopy({
"./src/_client_scripts/copy_code.js": "/js/copy_code.js",
});
eleventyConfig.addPassthroughCopy({
"./src/_client_scripts/bsky.js": "/js/bsky.js",
});
eleventyConfig.addPassthroughCopy({
"./src/_client_scripts/home.js": "/js/home.js",
});
eleventyConfig.addPassthroughCopy({
"./src/_client_scripts/about.js": "/js/about.js",
});
eleventyConfig.addPassthroughCopy({
"./src/_client_scripts/blog.js": "/js/blog.js",
});
eleventyConfig.addPassthroughCopy({
"./src/_client_scripts/webring.js": "/js/webring.js",
});
eleventyConfig.addPlugin(syntaxHighlight);
eleventyConfig.ignores.add("./src/_archive");
return {
dir: {
data: "_data",
input: "src",
includes: "_includes",
layouts: "_layouts",
},
};
};