Skip to main content

Page with sub navigation

Layout with sub navigation.

View an example page that uses this layout (opens in a new tab)

This layout offers a page with sub navigation, appearing to the left of content on wider viewports, and above on narrower ones.

To use this layout, make sub-navigation the value for a page’s layout key:

---
layout: sub-navigation
title: Page title
---

Page content

In addition to common front matter options, this layout also accepts the following options:

Name Type Description
sectionKey string

Parent navigation key (usually a page title) to show items below in the sub navigation. Default is homeKey value provided in plugin options.