-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eleventy.js
29 lines (26 loc) · 1.14 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
module.exports = function(eleventyConfig) {
// Copy css and js to the `_site` folder
eleventyConfig.addPassthroughCopy({'./src/dist/css': 'assets/css' });
eleventyConfig.addPassthroughCopy({'./src/dist/js': 'assets/js'});
// Find and copy any image files, maintaining directory structure.
eleventyConfig.addPassthroughCopy('./src/**/*.jpg');
eleventyConfig.addPassthroughCopy('./src/**/*.png');
eleventyConfig.addPassthroughCopy('./src/**/*.ico');
eleventyConfig.addPassthroughCopy('./src/**/*.svg');
eleventyConfig.addPassthroughCopy('./src/site.webmanifest');
eleventyConfig.addPassthroughCopy('./src/sw.js');
eleventyConfig.addPassthroughCopy('./src/browserconfig.xml');
eleventyConfig.addPassthroughCopy('./src/CNAME');
// Current year for copyright
eleventyConfig.addShortcode('year', () => `${new Date().getFullYear()}`);
eleventyConfig.addShortcode('staticFileCache', () => '0.0.10');
return {
templateFormats: ['md', 'njk'],
htmlTemplateEngine: 'njk',
dataTemplateEngine: 'njk',
dir: {
input: 'src',
output: '_site'
}
};
}