-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eleventy.js
35 lines (30 loc) · 1.19 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
const jetpack = require('fs-jetpack')
const eleventyNavigationPlugin = require("@11ty/eleventy-navigation")
const eleventySyntaxHighlightPlugin = require("@11ty/eleventy-plugin-syntaxhighlight")
const sortCollectionByOrder = require("./src/sandbox/filters/sort-collection-by-order")
const sortCollectionByTitle = require("./src/sandbox/filters/sort-collection-by-title")
module.exports = function(eleventyConfig) {
eleventyConfig.setBrowserSyncConfig({
open: 'local',
files: [
'./dist/css/rivet.css',
'./dist/js/rivet-iife.js'
]
})
eleventyConfig.addPassthroughCopy('src/sandbox/css/sandbox.css')
eleventyConfig.addPassthroughCopy('src/sandbox/js/sandbox.js')
eleventyConfig.addPassthroughCopy('css/rivet.css')
eleventyConfig.addPassthroughCopy('js/rivet-iife.js')
eleventyConfig.addPlugin(eleventyNavigationPlugin)
eleventyConfig.addPlugin(eleventySyntaxHighlightPlugin)
eleventyConfig.addFilter('sortCollectionByOrder', sortCollectionByOrder)
eleventyConfig.addFilter('sortCollectionByTitle', sortCollectionByTitle)
return {
dir: {
input: "src/sandbox",
output: "dist"
},
markdownTemplateEngine: "njk",
htmlTemplateEngine: "njk"
}
}