You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: playground/content/2.writing/5.navigation.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,17 @@ title: Getting Started
26
26
27
27
Page titles come from frontmatter — `navigation.title` when set, `title` otherwise. Pages with `navigation: false` are excluded from the tree entirely (and therefore from prev/next links, search, and `llms.txt`).
28
28
29
+
## Section layouts
30
+
31
+
Pages use the `docs` layout by default, which includes the navigation sidebar. Set `layout: page` in a directory's `.navigation.yml` to render every page in that directory without the sidebar:
32
+
33
+
```yaml [content/3.examples/.navigation.yml]
34
+
title: Examples
35
+
layout: page
36
+
```
37
+
38
+
The layout applies to nested directories too. A nested `.navigation.yml` can set `layout: docs` to restore the sidebar. The `page` layout keeps the header, footer and page table of contents.
39
+
29
40
## Header tabs
30
41
31
42
The header renders one tab per group in `header.nav` from `app.config.ts`. Each group maps top-level content sections to a tab:
0 commit comments