Commit Graph

9 Commits

Author SHA1 Message Date
Kunthawat Greethong
3207dc8c46 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 <noreply@anthropic.com>
2026-05-02 08:18:19 +07:00
Kunthawat Greethong
cdf15f8988 feat: add hero_image display with Image component
Show actual hero image when available, fallback to code window otherwise.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-30 13:51:52 +07:00
Kunthawat Greethong
be63c72048 fix: convert homepage text fields to richtext for live editing
Change field types from "text" to "richtext" and wrap content in PortableText
components. This enables proper inline live editing instead of jumping to backend.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-30 13:40:49 +07:00
Kunthawat Greethong
8094cec877 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 <noreply@anthropic.com>
2026-04-30 13:11:02 +07:00
Kunthawat Greethong
07725f9023 fix: add hero_image live editing with Image component from emdash/ui
Use Image component instead of img tag. Add hero_image to hero-visual
container with {...homepage.edit.hero_image} for live editing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-30 11:45:22 +07:00
Kunthawat Greethong
1c928a1217 fix: enable live editing on homepage with {...homepage.edit.field} attributes
Added {...homepage.edit.X} spread attributes to all editable elements
(hero, features, comparison, CTA sections). This is what the live
editing UI needs to enable inline editing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-30 11:32:53 +07:00
Kunthawat Greethong
79465ae005 fix: use slug 'main' for homepage singleton entry
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-30 11:15:12 +07:00
Kunthawat Greethong
734fad181e feat: enable full dynamic homepage content via EmDash
- Add homepage singleton collection with 30+ editable fields
- Update index.astro to fetch from getEmDashEntry("homepage", "homepage-main")
- Update Base.astro footer tagline/copyright from EmDash

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-29 23:44:37 +07:00
Kunthawat Greethong
520c5f19e2 Initial commit: EmDash blog template
Fixed index.astro: escaped curly braces in code display block
to prevent Astro parser misinterpreting them as expressions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-29 12:41:59 +07:00