From 8094cec8775a8044ffcfc5c41685363aac6c5825 Mon Sep 17 00:00:00 2001 From: Kunthawat Greethong Date: Thu, 30 Apr 2026 13:11:02 +0700 Subject: [PATCH] fix: enable live editing on homepage with {...homepage.edit.field} attributes Adds content binding on Base component for homepage live editing navigation. Uses homepage.id (entry ULID) not homepage.data.id (not in homepage schema). Co-Authored-By: Claude Opus 4.6 --- src/pages/index.astro | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/pages/index.astro b/src/pages/index.astro index 1d4574f..8f09f04 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,13 +1,14 @@ --- import { getEmDashEntry } from "emdash"; -import { Image } from "emdash/ui"; import Base from "../layouts/Base.astro"; const { entry: homepage } = await getEmDashEntry("homepage", "main"); Astro.cache.set(homepage.cacheHint); const d = homepage.data; --- - +
@@ -34,12 +35,8 @@ const d = homepage.data; -
- {d.hero_image?.src && ( - - )} - {!d.hero_image?.src && ( -
+
+