-
Notifications
You must be signed in to change notification settings - Fork 0
/
eleventy.config.js
38 lines (32 loc) · 1.01 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
const { EleventyHtmlBasePlugin, EleventyRenderPlugin } = require("@11ty/eleventy");
module.exports = function(eleventyConfig) {
// Front Matter Data
eleventyConfig.setFrontMatterParsingOptions({ language: "json" });
// Global Data
eleventyConfig.addGlobalData("app", require("./src/manifest.webmanifest.json"));
// Passthrough File Copy
eleventyConfig
.addPassthroughCopy("./src/assets")
.addPassthroughCopy("./src/favicon.ico")
.addPassthroughCopy({
"./src/manifest.webmanifest.json": "manifest.webmanifest",
});
// Plugins
eleventyConfig.addPlugin(require("@jgarber/eleventy-plugin-liquid"), {
globals: {
dates: {
display: "%B %e<sup>%q</sup>, %Y",
iso8601: "%Y-%m-%d",
},
},
});
eleventyConfig.addPlugin(require("@jgarber/eleventy-plugin-markdown"));
eleventyConfig.addPlugin(EleventyHtmlBasePlugin);
eleventyConfig.addPlugin(EleventyRenderPlugin);
return {
dir: {
input: "./src",
},
pathPrefix: "/nasa-iotd/",
};
};