From a86b227ced383efcd755e7b61e5dd8fcba58dad3 Mon Sep 17 00:00:00 2001 From: Yasamato Date: Mon, 1 Jan 2024 09:45:17 +0100 Subject: [PATCH] Fix landing page --- pages/index.tsx | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/pages/index.tsx b/pages/index.tsx index a3672a0e..5466a02b 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -26,14 +26,6 @@ export default function Home({ libraries, sponsors, columns }) { /> - - - {/*

@@ -118,7 +110,6 @@ export default function Home({ libraries, sponsors, columns }) { } export async function getStaticProps() { - /** const allItems = (await getAllCache(Types.item)) as Item[] const sponsors = allItems.filter((item) => item.sponsor) let popular = (await getLastViews(Types.item, 10000)) as Item[] @@ -147,13 +138,11 @@ export async function getStaticProps() { sponsorsSortedByPopular.reverse().forEach((sponsor) => { popular.unshift(sponsor) }) - */ return { props: { - libraries: await getAllCache(Types.library), + libraries: await getAllCache(Types.library), // (await getLastViews(Types.library, 1000)).slice(0, 6) sponsors: sponsors, - //libraries: (await getLastViews(Types.library, 1000)).slice(0, 6), //items: popular.slice(0, 9), //collections: (await getLastViews(Types.collection, 1000)).slice(0, 9), columns: await getAllCache(Types.column),