File tree Expand file tree Collapse file tree 3 files changed +3
-22
lines changed Expand file tree Collapse file tree 3 files changed +3
-22
lines changed Original file line number Diff line number Diff line change @@ -4,12 +4,14 @@ import markdownItDeflist from "markdown-it-deflist";
44import pluginTOC from "eleventy-plugin-toc" ;
55import * 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 */
1011export default config => {
1112 let data = {
1213 components,
14+ file_sizes,
1315 layout : "page.njk" ,
1416 theme_switcher : true ,
1517 toc : true ,
Original file line number Diff line number Diff 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} ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments