-
Notifications
You must be signed in to change notification settings - Fork 29
/
.eleventy.js
41 lines (36 loc) · 1.52 KB
/
.eleventy.js
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
// Plugin Imports
const pluginDirectoryOutput = require("@11ty/eleventy-plugin-directory-output");
const pluginEleventyNavigation = require("@11ty/eleventy-navigation");
module.exports = function (eleventyConfig) {
/**
* PLUGINS
* Adds additional eleventy functionality through official or community-created add-ons
* https://www.11ty.dev/docs/plugins/
*/
// Provides benchmarks in the terminal when a website is built. Useful for diagnostics.
// https://www.11ty.dev/docs/plugins/directory-output/
eleventyConfig.addPlugin(pluginDirectoryOutput);
// Allows navigation items to be defined in a scalable way via the front matter
// https://www.11ty.dev/docs/plugins/navigation/
eleventyConfig.addPlugin(pluginEleventyNavigation);
/**
* PASSTHROUGH'S
* Copy/paste non-template files straight to /public, without any interference from the eleventy engine
* https://www.11ty.dev/docs/copy/
*/
eleventyConfig.addPassthroughCopy("./src/assets/css");
eleventyConfig.addPassthroughCopy("./src/assets/favicons");
eleventyConfig.addPassthroughCopy("./src/assets/fonts");
eleventyConfig.addPassthroughCopy("./src/assets/images");
eleventyConfig.addPassthroughCopy("./src/assets/js");
eleventyConfig.addPassthroughCopy("./src/assets/svgs");
return {
dir: {
input: "src",
output: "public",
includes: "_includes",
data: "_data",
},
htmlTemplateEngine: "njk",
};
};