-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eleventy.js
26 lines (21 loc) · 862 Bytes
/
.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
const syntaxHighlight = require('@11ty/eleventy-plugin-syntaxhighlight');
const formatDistance = require('./util/format-distance');
module.exports = function (eleventyConfig) {
eleventyConfig.addPlugin(syntaxHighlight, {
templateFormats: ['md'],
alwaysWrapLineHighlights: true,
});
eleventyConfig.setTemplateFormats([
'pug',
'md',
'ico',
'webmanifest'
]);
eleventyConfig.addLiquidFilter('prettyDate', formatDistance);
eleventyConfig.addLayoutAlias('home', 'layouts/home.pug');
eleventyConfig.addLayoutAlias('post', 'layouts/post.pug');
eleventyConfig.addPassthroughCopy('public');
eleventyConfig.addPassthroughCopy('_headers');
eleventyConfig.addPassthroughCopy('service-worker.js');
eleventyConfig.addPassthroughCopy('node_modules/workbox-sw/build/workbox-sw.js');
};