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.astrohome-two.astroabout.astrocontact.astrofaq.astropricing.astroteam/index.astroservices/index.astroblog/index.astrocase-studies/index.astro404.astro
Collection Single Routes
These routes are generated from content entries:
services/[single].astroblog/[single].astrocase-studies/[single].astroblog/category/[category].astroblog/tag/[tag].astroblog/page/[slug].astro
Static Content Pages
This catch-all route renders content from src/content/pages/:
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.txtsrc/pages/[...lang]/llms.txt.tsandllms-full.txt.ts:/llms.txtand/llms-full.txt, one per languagesrc/pages/[...path].md.ts: a Markdown copy of a content page
See AI Links & llms.
Route Mental Model
src/pages/...decides the URL structuresrc/content/...provides the content. In the Sanity edition, there is nosrc/content/folder, and the content comes from your documentssrc/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.mdsrc/content/services/english/-index.mdsrc/content/case-studies/english/-index.mdIn 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.