From 3207dc8c468390e354032dbfe7bf2ea32e376e63 Mon Sep 17 00:00:00 2001 From: Kunthawat Greethong Date: Sat, 2 May 2026 08:18:19 +0700 Subject: [PATCH] fix: show hero image only, remove code fallback Change ternary src check to simple truthy check so image displays when set, otherwise shows nothing instead of code window. Co-Authored-By: Claude Opus 4.6 --- src/pages/index.astro | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/src/pages/index.astro b/src/pages/index.astro index bdd3cb4..cae40e5 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -38,30 +38,7 @@ const d = homepage.data;
- {d.hero_image?.src ? ( - - ) : ( -
-
- - - - astro.config.mjs -
-
import emdash from "emdash/astro";
-import { betterSqlite } from "emdash/db";
-
-export default defineConfig({
-  integrations: [
-    emdash({
-      database: betterSqlite({
-        databasePath: "./data.db"
-      }),
-    }),
-  ],
-});
-
- )} + {d.hero_image && }