Astro · Components and layouts
Use a layout in a page
Wrap page content in your layout component.
---
import Layout from "../layouts/Layout.astro";
---
<Layout title="Home">
<h1>Welcome</h1>
</Layout>
Astro · Components and layouts
Wrap page content in your layout component.
---
import Layout from "../layouts/Layout.astro";
---
<Layout title="Home">
<h1>Welcome</h1>
</Layout>
Was this page helpful?