From 509557ed6fec52036cc89f46ccb2443c3e948839 Mon Sep 17 00:00:00 2001 From: Davide Scaini Date: Thu, 9 Apr 2026 10:35:58 +0200 Subject: [PATCH] fix: the user feed shows a page that nests again "feed stats athlete" that should be shown only if you are browsing a user that is not you --- site/src/layouts/Base.astro | 12 ++++++++++++ site/src/pages/u/[handle]/athlete/index.astro | 12 +++++++++++- site/src/pages/u/[handle]/index.astro | 12 +++++++++++- site/src/pages/u/[handle]/stats/index.astro | 12 +++++++++++- 4 files changed, 45 insertions(+), 3 deletions(-) diff --git a/site/src/layouts/Base.astro b/site/src/layouts/Base.astro index d5e3889..1404660 100644 --- a/site/src/layouts/Base.astro +++ b/site/src/layouts/Base.astro @@ -313,6 +313,14 @@ try { }); + + {singleHandle && ( + + )} + {!singleHandle && ( diff --git a/site/src/pages/u/[handle]/index.astro b/site/src/pages/u/[handle]/index.astro index 384f399..2193f97 100644 --- a/site/src/pages/u/[handle]/index.astro +++ b/site/src/pages/u/[handle]/index.astro @@ -23,7 +23,7 @@ const base = import.meta.env.BASE_URL;

@{handle}

-
+ diff --git a/site/src/pages/u/[handle]/stats/index.astro b/site/src/pages/u/[handle]/stats/index.astro index 6e99451..b655e94 100644 --- a/site/src/pages/u/[handle]/stats/index.astro +++ b/site/src/pages/u/[handle]/stats/index.astro @@ -20,7 +20,7 @@ const indexUrl = `${base}data/${handle}/_merged/index.json`;

@{handle}

-
+