10 Commits

Author SHA1 Message Date
Kunthawat Greethong
6b77cc355e fix: use "portableText" instead of "richtext" field type
EmDash uses "portableText" as the field type name, not "richtext".

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-30 13:44:08 +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
d0868d000c fix: remove singleton flag from homepage collection
Singleton collections don't support live editing in EmDash.
Converting to regular collection enables live editing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-30 11:16:56 +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
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