Skip to content

Nested Pages

Latest
Compare
Choose a tag to compare
@drewbarontini drewbarontini released this 17 Jun 13:34
· 53 commits to master since this release

You can now add nested pages, which will be reflected in the sidebar as well.

leo 2014-06-17 09-28-22 2014-06-17 09-28-24

To create these pages, you just need to:

  • Create a sub-directory for the grouped pages
  • Make the root parent page subdirectory/index.md
  • Add some additional Frontmatter to the parent and child pages

In the parent page Frontmatter:

children: true

In addition to the normal Frontmatter, add the following to the children pages:

nested: true
parent: Parent Page Title # The title of the parent page

Note: You need to keep the priority number relative to all pages, not just the other children pages. So, for example, if you have 5 total pages with two being nested, the priority numbers would be 1-5 for all pages.

That's it! Now you have nested pages.