Pyro

Docs

Pages

In this section, we will learn about creating pages in Pyro.

Add a Markdown page​

Create a file called /pages/hello.md:

---
title: hello page title
description: hello page description
---

# Hello

How are you doing today?

Once you save the file, the development server will automatically reload the changes. Now open http://localhost:8000/hello and you will see the new page you just created!

Routing

If you are familiar with other static site generators or tools like Next.js, this "file-sytem routing" approach will feel very similar (because it's the same)! Let's go through some samples to clarify the behavior:

  • /pages/index.md[baseUrl]
  • /pages/foo.md[baseUrl]/foo
  • /pages/foo/test.md[baseUrl]/foo/test
  • /pages/foo/index.md[baseUrl]/foo