Skip to content
New: Customize your theme with an AI assistant. Read the guide

Pages & Routes

Taxo routes are driven by src/pages/[...lang]/ plus the content collections defined in src/content.config.ts.

Dedicated Page Files

These routes have their own Astro page files:

  • index.astro
  • home-two.astro
  • about.astro
  • contact.astro
  • faq.astro
  • pricing.astro
  • team/index.astro
  • services/index.astro
  • blog/index.astro
  • case-studies/index.astro
  • 404.astro

Collection Single Routes

These routes are generated from content entries:

  • services/[single].astro
  • blog/[single].astro
  • case-studies/[single].astro
  • blog/category/[category].astro
  • blog/tag/[tag].astro
  • blog/page/[slug].astro

Static Content Pages

This catch-all route renders content from src/content/pages/:

src/pages/[...lang]/[page].astro
const { page } = Astro.props;
---
<Base {...page.data}>
<SinglePageLayout content={{ ...page.data, ...page }} class="py-8 md:py-16" />
<CTASection hasNoLightBackground={true} />
</Base>

That is what powers routes such as:

  • /privacy-policy/
  • /terms-conditions/
  • /components/

Generated Files

These routes build files from your content, not pages:

  • src/pages/robots.txt.ts: /robots.txt
  • src/pages/[...lang]/llms.txt.ts and llms-full.txt.ts: /llms.txt and /llms-full.txt, one per language
  • src/pages/[...path].md.ts: a Markdown copy of a content page

See AI Links & llms.

Route Mental Model

  • src/pages/... decides the URL structure
  • src/content/... provides the content. In the Sanity edition, there is no src/content/ folder, and the content comes from your documents
  • src/layouts/components/... decides how it is rendered

Collection Index Files Matter

The -index.md file in a collection usually controls the list page:

src/content/blog/english/-index.md
src/content/services/english/-index.md
src/content/case-studies/english/-index.md

In the Tina edition, these three are -index.mdx, under each entry’s listing page at /admin/. In the Sanity edition, they are Blog page, Services page, and Case studies page under Main pages.

Examples:

  • blog index controls search and card layout options
  • services index controls page header content
  • case studies index controls list layout and limit

Multilingual Route Note

All of these routes are wrapped in [...lang], so the final URL also depends on the multilingual settings in config.toml.

Type something to search...