Sign Up

Page Layout

You can change the layout of your pages in various ways. The following properties can be changed on a per-page basis:

  • Table of contents can be shown/hidden

  • Navigation can be shown/hidden

  • Content can be made to stretch the full width of the page

Page layouts are defined in your Markdown document's frontmatter.

Hiding the table of contents

By default the table of contents (TOC) will show all h2, h3, and h4 headings on your page.

If want to hide the TOC, you can set toc: false in your frontmatter:

README.md
---
toc: false
---

Hiding the navigation

If want to hide the navigation shown on the left of the page, you can set navigation: false in your frontmatter:

README.md
---
navigation: false
---

Full-width content

Once you've hidden the navigation and/or the table of contents, you can choose to have your content stretch the full width of the page.

This can be useful for creating landing pages where you want full control of the content.

You can do this by setting page_width: full in your frontmatter.

README.md
---
toc: false
navigation: false
page_width: full
---

Was this page helpful?