From 8bc95d0f50c2495e4d7eeb991c97964a721d6630 Mon Sep 17 00:00:00 2001 From: itsfinniii <102350242+itsfinniii@users.noreply.github.com> Date: Sun, 12 Apr 2026 18:23:07 +0200 Subject: [PATCH] Only render the last components if there is anything to show, otherwise just show nothing --- astro/src/components/web/LastAlbums.astro | 2 +- astro/src/components/web/LastBlogs.astro | 2 +- astro/src/components/web/LastProjects.astro | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/astro/src/components/web/LastAlbums.astro b/astro/src/components/web/LastAlbums.astro index e03b5f0..9e65e82 100644 --- a/astro/src/components/web/LastAlbums.astro +++ b/astro/src/components/web/LastAlbums.astro @@ -25,7 +25,7 @@ const lastAlbums = await getLastAlbums(albums.amount); const size = calculateSizeClasses(albums.amount, lastAlbums.length); --- -{ settings.photo.enabled && ( +{ (settings.photo.enabled && lastAlbums.length > 0) && (
0) && (
0) && (