-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheleventy.config.js
More file actions
34 lines (24 loc) · 1.04 KB
/
eleventy.config.js
File metadata and controls
34 lines (24 loc) · 1.04 KB
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
const markdownItAttrs = require('markdown-it-attrs')
module.exports = function(eleventyConfig) {
// Copy assets to _site
eleventyConfig.addPassthroughCopy('assets/images')
eleventyConfig.addPassthroughCopy('assets/documents')
eleventyConfig.addPassthroughCopy('assets/javascripts')
eleventyConfig.addPassthroughCopy('favicon.ico')
eleventyConfig.addPassthroughCopy('CNAME')
// Add markdown-it-attrs plugin
eleventyConfig.amendLibrary('md', mdLib => mdLib.use(markdownItAttrs))
// Enable excerpts
eleventyConfig.setFrontMatterParsingOptions({ excerpt: true })
// Less
eleventyConfig.addPlugin(require('./eleventy.config.less.js'))
// Filters
eleventyConfig.addPlugin(require('./eleventy.config.filters.js'))
// Shortcodes
eleventyConfig.addPlugin(require('./eleventy.config.shortcodes.js'))
// Custom tags
eleventyConfig.addPlugin(require('./eleventy.config.image.js'))
eleventyConfig.addPlugin(require('./eleventy.config.figure.js'))
// Configure layouts directory
return { dir: { layouts: '_includes/layouts' } }
}