Commit Graph

6 Commits

Author SHA1 Message Date
Kunthawat Greethong
3c07db0406 fix: use {id, src, alt} format for image fields
EmDash image fields require {id, src, alt} not {url, alt}.
Runtime type: { id, src, alt, width?, height? }

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-30 10:27:41 +07:00
Kunthawat Greethong
ea8a725e52 fix: add _key to all PortableText blocks and spans
PortableText blocks in EmDash require a _key field. Added
to widgetAreas, sections, and all content entries.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-30 10:19:11 +07:00
Kunthawat Greethong
433af238cf fix: remove $media wrapper from image fields in seed content
Image fields in EmDash seed content use { url, alt } format directly,
not {$media: { url, alt, filename } }

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-30 09:25:03 +07:00
Kunthawat Greethong
b861e3bab8 fix: add slug to homepage content entry
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-29 23:51:23 +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