Skip to content
Type something to search...
Looka Theme Documentation

Pages And Routing

Theme routes are built from src/pages/[...lang]/ and content collections.

Add A New Page

  1. Create a new file in src/content/pages/<language>/.
  2. Add frontmatter with title and optional customSlug.
  3. Save and visit /<customSlug>/ in the browser.

Example

---
title: "About Our Team"
customSlug: "team"
---
Content goes here.

How It Works

The dynamic page route is handled by src/pages/[...lang]/[page].astro and uses the pages collection automatically.