-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy path.eleventy.js
More file actions
26 lines (18 loc) · 801 Bytes
/
.eleventy.js
File metadata and controls
26 lines (18 loc) · 801 Bytes
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
const yaml = require("js-yaml");
const svgContents = require("eleventy-plugin-svg-contents");
module.exports = function(eleventyConfig) {
// Don't try to build pages from these files
eleventyConfig.addPassthroughCopy("assets");
eleventyConfig.addPassthroughCopy("README.md");
eleventyConfig.addPassthroughCopy("robots.txt");
// Keep highlight data files working after conversion from Jekyll
eleventyConfig.addDataExtension("yaml", contents => yaml.safeLoad(contents));
// Insert SVG contents
eleventyConfig.addPlugin(svgContents);
return {
/* Change value if you'd like to deploy to subdirectory, e.g. "/highlights/"
* Learn more: https://www.11ty.dev/docs/config/#deploy-to-a-subdirectory-with-a-path-prefix
*/
pathPrefix: "/"
}
};