-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eleventy.js
38 lines (33 loc) · 1.21 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
//imports
const eleventyNavigationPlugin = require("@11ty/eleventy-navigation");
const pluginRss = require("@11ty/eleventy-plugin-rss");
const pluginWebc = require("@11ty/eleventy-plugin-webc");
//eleventy config function
module.exports = function(eleventyConfig) {
//passthrough definitions
eleventyConfig.addPassthroughCopy("manifest.json");
eleventyConfig.addPassthroughCopy(".prettierrc");
eleventyConfig.addPassthroughCopy("src/assets/");
//plugin declarations
eleventyConfig.addPlugin(eleventyNavigationPlugin);
eleventyConfig.addPlugin(pluginRss);
eleventyConfig.addPlugin(pluginWebc);
//front matter options
eleventyConfig.setFrontMatterParsingOptions(
{excerpt: true,excerpt_separator: "<!-- excerpt -->" } //excerpt specification
);
//default 11ty configuration overrides
return {
dir:{
input: "src",
data: "data",
includes: "templates/includes",
layouts: "templates/layouts",
output: "dist"
},
dataTemplateEngine: "njk",
markdownTemplateEngine: 'njk',
htmlTemplateEngine: "njk",
templateFormats: ["html", "liquid", "njk", "md"],
}
};