generated from bly-th/eleventy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eleventy.js
41 lines (36 loc) · 1.5 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
// Import plugins
const eleventyNavigationPlugin = require('@11ty/eleventy-navigation');
const pluginRss = require('@11ty/eleventy-plugin-rss');
// Import filters
const cssMinFilter = require('./src/filters/css-min.js');
const markdownFilter = require('./src/filters/markdown.js');
module.exports = (eleventyConfig) => {
// Add plugins
eleventyConfig.addPlugin(eleventyNavigationPlugin);
eleventyConfig.addPlugin(pluginRss);
// Add filters
eleventyConfig.addFilter('cssmin', cssMinFilter);
eleventyConfig.addFilter('markdown', markdownFilter);
// Pass through
eleventyConfig.addPassthroughCopy('./src/admin/');
eleventyConfig.addPassthroughCopy('./src/uploads/');
eleventyConfig.addPassthroughCopy('./src/img/');
eleventyConfig.addPassthroughCopy('./src/fonts/');
eleventyConfig.addPassthroughCopy('./src/js/');
eleventyConfig.addPassthroughCopy('./src/android-chrome-192x192.png');
eleventyConfig.addPassthroughCopy('./src/android-chrome-384x384.png');
eleventyConfig.addPassthroughCopy('./src/apple-touch-icon.png');
eleventyConfig.addPassthroughCopy('./src/favicon-16x16.png');
eleventyConfig.addPassthroughCopy('./src/favicon-32x32.png');
eleventyConfig.addPassthroughCopy('./src/favicon.ico');
eleventyConfig.addPassthroughCopy('./src/safari-pinned-tab.svg');
eleventyConfig.addPassthroughCopy('./src/site.webmanifest');
eleventyConfig.addPassthroughCopy('./src/robots.txt');
return {
dir: {
input: 'src',
output: '_site',
},
passthroughFileCopy: true,
};
};