Skip to content
GP
← Example Book

Chapter 1

How the book layout works

Each book has its own folder under content/en/books/. The folder name is the book's URL.

Files

  • _book.mdx — the book itself: title, subtitle, description, cover emoji and the introduction text.
  • 01-...mdx, 02-...mdx — the chapters. The leading number only controls the order; it does not appear in the URL.

So 01-how-it-works.mdx is published at /en/books/example-book/how-it-works.

Chapter front matter

---
title: Chapter title
draft: false
---

Marking a chapter draft: true removes it from both the table of contents and the previous/next navigation.