Skip to content

Customization

Update the site-wide identity in src/lib/site-config.ts:

export const SITE_CONFIG = {
name: "Your Brand",
description: "Your tagline",
url: "https://your-domain.com",
defaultLocale: "en",
locales: ["en", "id"],
localeLabels: { en: "English", id: "Indonesia" },
localePrefixes: { en: "en", id: "id" },
};

Edit public/admin/config.yml to customise collections, fields, and widgets. The CMS config must stay in sync with the content schemas defined in src/content.config.ts.

  1. Create a Markdown file in src/content/pages/:
---
title: My Page
slug: my-page
locale: id
description: A new page.
---
## Content here
  1. Add it to the navigation in src/content/navigation.yml
  2. Create the locale route in src/pages/[locale]/ if it needs a unique layout

The homepage Hero component lives in src/components/Hero.astro and pulls its data from the first section defined in src/content/pages/index.md.