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 title sub-property if the main title of the page is not relevant enough 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 away sub-property for the URL.

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

title: GitHub
order: 4
permalink: false

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