---
title: Home
layout: home
---
layout: home renders the page with site/home.eta. The name is relative to site/ and has no .eta: layout: layouts/post is site/layouts/post.eta.
Without a layout, Stati walks up from the page's folder and takes the first template it finds:
site/
├── layout.eta everything else
├── home.eta pages with layout: home
└── blog/
├── index.md
├── index.eta blog/index.md, the listing
├── layout.eta the posts
└── hello.md
- A
layoutthat doesn't exist is ignored without a warning, and the page gets the usuallayout.eta. When a page looks wrong, check the spelling first. - Index pages, which are the home page and a folder's
index.mdwith pages next to it, look forindex.etabeforelayout.etain each folder. That's how a listing gets its own template while the posts keep theirs, and why asite/index.etabecomes the home page's layout. - A folder's
layout.etareplaces the one above it rather than wrapping it. Every layout is a whole HTML document, so share the head, header and footer as partials.
In the Stati docs: Template resolution order and Layout inheritance.