From 900a707fdcb04e5739126ec2509fdc39fee7491c Mon Sep 17 00:00:00 2001 From: Marc Pervaz Boocha Date: Sun, 7 Apr 2024 19:43:04 +0530 Subject: Rewrote Site in 11ty Still need to Update the content --- src/server/build.ts | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 src/server/build.ts (limited to 'src/server/build.ts') diff --git a/src/server/build.ts b/src/server/build.ts deleted file mode 100644 index 75366e3..0000000 --- a/src/server/build.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { posts } from "./template/Post.js" -import { pages } from "./template/Base.js" - -const postMod: string[] = [ -] - -const pageMod = [ - ...postMod, - "./content/about.js", - "./content/index.js" -] - -const routes = [ - ...pageMod, - "./content/webmanifest.js", - "./content/robots.js", - "./content/blog.js", - "./content/sitemap.js", - "./content/feed.js", -] - -function datecmp(a: { date_mod?: Date| undefined }, b: { date_mod?: Date | undefined }): number { - return (a.date_mod ?? new Date()).valueOf() - (b.date_mod ?? new Date()).valueOf() -} - -await Promise.all(postMod.map(mod => import(mod))) -posts.sort(datecmp).reverse() -await Promise.all(pageMod.map(mod => import(mod))) -pages.sort(datecmp).reverse() -await Promise.all(routes.map(mod => import(mod))) - -- cgit v1.2.3-70-g09d2