From 79e343dbdc6b96cdc745340f65902b3194048cdc Mon Sep 17 00:00:00 2001 From: itsfinniii <102350242+itsfinniii@users.noreply.github.com> Date: Mon, 27 Apr 2026 17:11:11 +0200 Subject: [PATCH] Add some comments --- astro/src/lib/pages.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/astro/src/lib/pages.ts b/astro/src/lib/pages.ts index 569a802..5b462b7 100644 --- a/astro/src/lib/pages.ts +++ b/astro/src/lib/pages.ts @@ -97,8 +97,11 @@ export async function getPage(settings: GlobalSettings, route: string): Promise< const allCategories = await getAllCategories(settings); const lastCategory = allCategories[0]; + // Changing the thumbnail here is okay, as it gets everything again in the CategoryIndex.astro file. + // Might have to make it prettier down the line? + // TODO: See comment above. const resizedThumbnail = getImageSize(lastCategory.thumbnail.width, lastCategory.thumbnail.height, 0.756); - + const thumbnail = await getImage({ src: lastCategory.thumbnail.url, width: resizedThumbnail.width, @@ -136,6 +139,9 @@ export async function getPage(settings: GlobalSettings, route: string): Promise< const category = await getPhotoCategory(`/${params["C"]}`); + // Changing the thumbnail here is okay, as it gets everything again in the CategoryIndex.astro file. + // Might have to make it prettier down the line? + // TODO: See comment above. const resizedThumbnail = getImageSize(category.thumbnail.width, category.thumbnail.height, 0.756); const thumbnail = await getImage({