Skip to content

Commit

Permalink
Fix landing page (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yasamato authored Jan 1, 2024
1 parent 1a69fa5 commit 2973094
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,6 @@ export default function Home({ libraries, sponsors, columns }) {
/>
</Head>

<LibraryBoard
contentOf={null}
libraries={libraries}
allLibraries={libraries}
canEdit={true}
/>

{/*
<div className={'row'}>
<div className={'col'}>
<h2 className={'mb-0'}>
Expand Down Expand Up @@ -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[]
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit 2973094

Please sign in to comment.