Left Navigation Sidebar Demo

This page demonstrates the nav-left layout, which creates and displays a fixed sidebar on the left side of your page that:

How to use it

1. Set the layout in your page’s front matter:

---
layout: nav-left
title: Your Page Title
---

2. Configure navigation sections in _data/nav-sections.yml:

sections:
  - name: section-id
    display: "Section Title"

3. Organize pages with toc-section in their YAML:

---
layout: default
title: My Page
toc-section: section-id
order: 1
---

Pages are automatically grouped and sorted by their toc-section and order fields.

Common use cases

Customization

Edit assets/css/nav-left.css to change:

File structure

_layouts/
  nav-left.html          # Layout template
_data/
  nav-sections.yml       # Navigation configuration
assets/css/
  nav-left.css           # Styling
_includes/nav/
  nav-left.html          # Navigation component