A plugin for creating hierarchical navigation in Eleventy projects. Supports breadcrumbs too!
eleventy-navigation is a plugin designed to create hierarchical navigation in Eleventy projects. It offers support for breadcrumbs and is used in production on 11ty.dev.
To install the eleventy-navigation plugin, you can use npm. Run the following command in your Eleventy project directory:
npm install @11ty/eleventy-navigation --save-dev
Next, add the plugin to your .eleventy.js
config file:
const eleventyNavigationPlugin = require("@11ty/eleventy-navigation");
module.exports = function(eleventyConfig) {
eleventyConfig.addPlugin(eleventyNavigationPlugin);
};
eleventy-navigation is a powerful plugin for creating hierarchical navigation and breadcrumb support in Eleventy projects. With its production usage on 11ty.dev, it is a reliable choice for enhancing navigation in your Eleventy sites.