Demo: Hide Sidebar & Table of Contents
Live demonstration of combining hide_sidebar and hide_toc for a centered reading layout.
This page demonstrates combining hide_sidebar: true and hide_toc: true. Both navigation panels are hidden, creating a clean, centered reading layout.
What’s Happening
Both the sidebar and table of contents are hidden. Here is the frontmatter used:
---
title: "Demo: Hide Sidebar & Table of Contents"
hide_sidebar: true
hide_toc: true
---
Clean Reading Experience
With both panels removed, the content is centered on the page in a narrower container. This layout is ideal for:
- Landing pages
- Standalone articles
- Focused reading content
- About pages
Mobile Navigation
Even with both panels hidden, the mobile hamburger menu still provides full navigation access. Readers are never stranded without a way to navigate.
Subsection Example
This subsection shows that headings still render normally — they simply don’t appear in a table of contents.
When to Use
Combine both options when you want maximum focus on the content itself, with no surrounding navigation panels.
See the Frontmatter reference for full documentation.
See Also
- Hide Sidebar — hides just the left sidebar
- Hide Table of Contents — hides just the right-side TOC