Type something to search...

Blog

How to load content from a remote API with an Astro loader?

How to load content from a remote API with an Astro loader?

To load content from a remote API with an Astro loader, write a function that returns a loader object with a name, a schema and an async `loa

Dive Deeper
How to use rest parameters for catch-all routes in Astro?

How to use rest parameters for catch-all routes in Astro?

To create a catch-all route in Astro, use a rest parameter in the file name: three dots inside square brackets, such as `src/pages/docs/[...path]

Dive Deeper
How to create reusable layouts in Astro?

How to create reusable layouts in Astro?

To create a reusable layout in Astro, make an ordinary Astro component, conventionally in src/layouts/, that contains the shared page shell (`<

Dive Deeper
What is route priority in Astro and how does it resolve conflicts?

What is route priority in Astro and how does it resolve conflicts?

Route priority is the set of rules Astro uses to decide which file handles a URL when more than one route could match it. In short, more specific

Dive Deeper
How to generate an RSS feed in Astro?

How to generate an RSS feed in Astro?

To generate an RSS feed in Astro, install the official @astrojs/rss package, set site in your Astro config, and create an endpoint such as `src

Dive Deeper
How to use Sass in an Astro project?

How to use Sass in an Astro project?

To use Sass in Astro, install the compiler with npm install -D sass (or sass-embedded), then add lang="scss" to any <style> tag in an `.a

Dive Deeper