all repos — kushiyaki @ 5ac1d142a30a1161ed803f3f66c6e7ce093caccb

🍢 A tiny static site generator for grilling markdown files to perfection

chore: remove out of date TODO comments
trickyni trickyniv56@gmail.com
Mon, 25 May 2026 14:35:54 +0300
commit

5ac1d142a30a1161ed803f3f66c6e7ce093caccb

parent

3dc42e53ef73a459a8c798fca4927bd5014c92e3

1 files changed, 4 insertions(+), 9 deletions(-)

jump to
M insertJSX.jsinsertJSX.js

@@ -1,10 +1,5 @@

-import { select } from "hast-util-select"; import { resolve } from "path"; /* - * DONE filedata - * DONE before/after - * DONE multiple components - * DONE global data * HACK deduplicate * HACK make the data validation more elegant */

@@ -15,14 +10,14 @@

return async (tree) => { if (data.before != undefined) { for (let x of [data.before].flat().reverse()) { - const fn = await import(`${templateDir}/${x}.jsx`); //FIX avoid strict filestruct past "input" - tree.children.unshift(fn.default(data, siteIndex)); //TODO use select on "body" + const fn = await import(`${templateDir}/${x}.jsx`); + tree.children.unshift(fn.default(data, siteIndex)); } } if (data.after != undefined) { for (let x of [data.after].flat().reverse()) { - const fn = await import(`${templateDir}/${x}.jsx`); //FIX avoid strict filestruct past "input" - tree.children.push(fn.default(data, siteIndex)); //TODO use select on "body" + const fn = await import(`${templateDir}/${x}.jsx`); + tree.children.push(fn.default(data, siteIndex)); } } };