Skip to content

Commit 192d073

Browse files
Adjust 11ty settings accordingly
1 parent b88ea97 commit 192d073

File tree

3 files changed

+3
-22
lines changed

3 files changed

+3
-22
lines changed

_build/eleventy.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@ import markdownItDeflist from "markdown-it-deflist";
44
import pluginTOC from "eleventy-plugin-toc";
55
import * as filters from "./filters.js";
66

7-
import components from "../node_modules/prismjs/src/components.json" with { type: "json" };
7+
import components from "../components.json" with { type: "json" };
8+
import file_sizes from "../file-sizes.json" with { type: "json" };
89

910
/** @param {import("@11ty/eleventy").UserConfig} config */
1011
export default config => {
1112
let data = {
1213
components,
14+
file_sizes,
1315
layout: "page.njk",
1416
theme_switcher: true,
1517
toc: true,

_data/eleventyComputed.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,4 @@ export default {
6767

6868
return ret;
6969
},
70-
files_sizes (data) {
71-
let ret = {};
72-
for (let file of data.tree) {
73-
ret[file.path] = file.size;
74-
}
75-
return ret;
76-
},
7770
};

_data/tree.js

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)