Complete the code to create a new page in Astro by adding a file named {{BLANK_1}}.
Create a file called [1] inside the src/pages directory to add a new page.In Astro, pages are created by adding .astro files inside the src/pages folder. Naming the file about.astro creates an About page automatically.
Complete the code to link to the About page using the correct path in Astro.
<a href="[1]">About</a>
File-based routing in Astro maps about.astro to the URL path /about. So the link should use /about.
Fix the error in the code by choosing the correct file name for the homepage in Astro.
The homepage file should be named [1] inside src/pages.Astro uses index.astro as the default homepage file inside src/pages. Other names won't work as the root page.
Fill both blanks to create a nested route for a blog post in Astro.
Create a file at src/pages/blog/[1]/[2].astro to make a nested route.
In Astro, dynamic routes use square brackets. To create a nested blog post route, use a folder named post and a dynamic file [slug].astro.
Fill all three blanks to create a dynamic nested route for a user profile in Astro.
Place the file at src/pages/[1]/[2]/[3].astro to define the route.
This structure creates a nested route like /users/:userId/profile. The folder users, dynamic folder [userId], and file profile.astro define the path.
