Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/pages/[locale]/community.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { getCollectionInLocaleWithFallbacks } from "@pages/_utils";

export const getStaticPaths = async () => {
const allSketches = await getCurationSketches();
const sketches = allSketches.slice(0, 10);
const sketches = allSketches.slice(0, 8);
return await Promise.all(
nonDefaultSupportedLocales.map(async (locale) => {
const libraries = await getCollectionInLocaleWithFallbacks(
Expand Down
9 changes: 1 addition & 8 deletions src/pages/community.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,7 @@ import CommunityLayout from "../layouts/CommunityLayout.astro";
import { getCollectionInDefaultLocale } from "./_utils";

const allSketches = await getCurationSketches();
const priorityIds = [
'2684408', '2693274', '2693345',
'2689119', '2484739', '2688829',
'2690571', '2690405', '2691712', '2690038'
];
const sketches = allSketches
.filter(sk => priorityIds.includes(String(sk.visualID)))
.slice(0, 8);
const sketches = allSketches.slice(0, 8);
const libraries = await getCollectionInDefaultLocale("libraries");
const pastEvents = await getCollectionInDefaultLocale("events");
---
Expand Down
Loading