The layout system

How it works?

Astro has the possibility to pass a layout props frontmatter in Markdown.

Example for the Holy layout

---
layout: holy
---

We hacked on that with:

Layout Levels

There are 2 layouts:

  • the standard layout that can be imported from a Astro component (non-markdown page)
  • the Markdown layout (with the md suffix)