-
Notifications
You must be signed in to change notification settings - Fork 0
/
eleventy.config.js
51 lines (42 loc) · 1.49 KB
/
eleventy.config.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
42
43
44
45
46
47
48
49
50
51
// @ts-check
/**
* Eleventy Configuration
* @module .eleventy
* @see {@link https://www.11ty.dev/docs/config/}
* @see {@link https://www.11ty.dev/docs/quicktips/local-plugin/}
* @param {import("@11ty/eleventy").UserConfig} config - Eleventy's configuration object
* @returns {import("@11ty/eleventy").EleventyConfig} - Returns Eleventy's configuration options
*/
import addWorkflow from "./src/_flightdeck/workflow.js";
import addFilters from "./src/_flightdeck/filters.js";
import addTransforms from "./src/_flightdeck/transforms.js";
import addShortcodes from "./src/_flightdeck/shortcodes.js";
import addPlugins from "./src/_flightdeck/plugins.js";
export default function(config) {
/** @type {{useImageDirTransform: boolean}} */
const options = {
useImageDirTransform: false
};
// Configure development workflow (server, watch, passthrough)
addWorkflow(config, options);
// Add transforms (esbuild, lightningcss, image optimization)
addTransforms(config, options);
// Add eleventy plugins
addPlugins(config);
// Add shortcodes for templates
addShortcodes(config);
// Add universal filters
addFilters(config);
return {
dir: {
input: "src",
output: "dist",
data: "_includes/data",
includes: "_includes",
layouts: "_includes/layouts"
},
htmlTemplateEngine: "njk",
markdownTemplateEngine: "njk",
templateFormats: ["md", "njk", "html"],
};
}