-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eleventy.js
34 lines (26 loc) · 1.03 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
const markdownIt = require('markdown-it')
module.exports = function (eleventyConfig) {
eleventyConfig.addLayoutAlias('base', 'layout/base.hbs')
eleventyConfig.addLayoutAlias('issue', 'layout/issue.hbs')
eleventyConfig.addCollection('issue', c => c.getFilteredByGlob('issue/*'))
eleventyConfig.addPassthroughCopy('styles')
eleventyConfig.addPassthroughCopy('scripts')
eleventyConfig.addPassthroughCopy('assets')
eleventyConfig.addPassthroughCopy({ 'node_modules/htmx.org/dist': '/vendor/htmx.org' })
require('./_build/generic_filters')(eleventyConfig)
require('./_build/site_filters')(eleventyConfig)
eleventyConfig.addPlugin(require('@11ty/eleventy-plugin-rss'))
eleventyConfig.addPlugin(require('@11ty/eleventy-plugin-syntaxhighlight'), {
init: ({ Prism }) => {
require('prism-hyperscript')(Prism)
}
})
const md = markdownIt({
html: true,
typographer: true,
})
eleventyConfig.setLibrary('md', md)
return {
markdownTemplateEngine: 'hbs'
}
}