refactor(home): move page content into per-language YAML sections
All visible text, lists, image refs, and CTAs for the home page now live in en/index.md and es/index.md as a typed `sections:` frontmatter array. HomePage.astro is reduced to a thin router; each section type is rendered by a dedicated component in src/components/home/. Adds .no-balance utility class to suppress text-wrap: balance on the commitments heading. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -11,7 +11,8 @@ const shared = {
|
||||
alt: z.string().optional(),
|
||||
lang: language,
|
||||
translationKey: z.string().optional(),
|
||||
draft: z.boolean().default(false)
|
||||
draft: z.boolean().default(false),
|
||||
sections: z.array(z.record(z.unknown())).optional()
|
||||
};
|
||||
|
||||
const pages = defineCollection({
|
||||
|
||||
Reference in New Issue
Block a user