From 5649d5a515575f9344553324d33617dd0e866fcf Mon Sep 17 00:00:00 2001 From: ZebangCheng Date: Fri, 24 Apr 2026 11:03:45 +0000 Subject: [PATCH] fix: correct hero image extension from .png to .jpg in Hero.astro MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The homepage Hero component referenced `/images/hero.png`, but the actual asset shipped at `homepage/public/images/hero.jpg`. As a result, https://understand-anything.com/images/hero.png returned HTTP 404 and the hero background failed to load. 修复:把 homepage/src/components/Hero.astro:7 的 /images/hero.png 改成 /images/hero.jpg,与仓库中实际存在的 homepage/public/images/hero.jpg 对齐,消除站点首页的 404。 Repro: curl -sI https://understand-anything.com/images/hero.png # HTTP/2 404 Root cause: homepage/src/components/Hero.astro:7 # file does not exist homepage/public/images/ hero.jpg (182179 bytes) # actual file shipped Fix: Single-line: .png -> .jpg in Hero.astro:7. Asset already published, no binary changes needed. After Pages rebuild, /images/hero.jpg resolves with HTTP 200. --- homepage/src/components/Hero.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homepage/src/components/Hero.astro b/homepage/src/components/Hero.astro index 7fc3cb2..63885a6 100644 --- a/homepage/src/components/Hero.astro +++ b/homepage/src/components/Hero.astro @@ -4,7 +4,7 @@ const githubUrl = 'https://github.com/Lum1104/Understand-Anything';
- +