-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eleventy.js
35 lines (31 loc) · 932 Bytes
/
.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
module.exports = function (eleventyConfig) {
eleventyConfig.addGlobalData("baseUrl", function () {
const deployUrl = "https://hayyi2.github.io/flatmin/"
return process.env.ELEVENTY_RUN_MODE !== 'serve' ? deployUrl : '/'
});
eleventyConfig.addPassthroughCopy("src/assets");
eleventyConfig.addLayoutAlias('default', 'stacked.njk');
eleventyConfig.setServerOptions({
liveReload: true,
domDiff: true,
port: 8000,
watch: [
'./dist/assets/css/*.css',
'./dist/assets/js/*.js'
],
showAllHosts: false,
https: {},
encoding: "utf-8",
});
return {
dir: {
input: "./src",
includes: "./includes",
layouts: "./layouts",
data: "./data",
output: "./dist",
},
htmlTemplateEngine: "njk",
templateFormats: ["njk"],
}
};