Skip to content

Overview

The page_components folder is used for pages that require multiple files.

Astro’s page router defines everything in the pages folder as a route, so Astro makes extra files (images, stylesheets) into routes.

They can be ignored by placing an ”_” at the beginnig of the file.

Using the page_components folder is a better alternative, no underscore and the pages folder just routes, the content is in the page component.

---
import LessonsPage from "@/page_components/lessons/index.astro";
---
<LessonsPage />