Simple navigation configuration

Configuring the navigation in Pack11ty should be pretty easy:

First, add a nav property to the Front Matter of the page you want to add to the navigation.

Then, set the order sub-property to the position it should have in the navigation.

Additionnaly, you can set the nav.title sub-property if the main title of the page is not relevant enough or too long for the navigation.

You can even add links to other sites in the navigation by creating a file with just the navigation informations[1], including a nav.away sub-property for the URL.

Look at the example linking to the project's page on GitHub:

---
title: GitHub
nav:
  order: 4
  away: https://github.com/nhoizey/pack11ty
permalink: false
---

  1. Don't forget to also set the permalink to false to prevent Eleventy from generating an HTML file. ↩ī¸Ž