From 18d65aaf57ce5187abe94389af61fc64bf164618 Mon Sep 17 00:00:00 2001 From: Kunthawat Greethong Date: Thu, 30 Apr 2026 11:48:48 +0700 Subject: [PATCH] fix: add content binding to Base for live editing navigation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pass content={{ collection: "homepage", id: homepage.data.id, slug: "main" }} to Base layout — same pattern as posts and pages. This enables the live editor to navigate to the correct admin panel entry instead of jumping. Co-Authored-By: Claude Opus 4.6 --- src/pages/index.astro | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/index.astro b/src/pages/index.astro index 1d4574f..82026aa 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -7,7 +7,9 @@ const { entry: homepage } = await getEmDashEntry("homepage", "main"); Astro.cache.set(homepage.cacheHint); const d = homepage.data; --- - +