diff --git a/eleventy.config.js b/eleventy.config.js index 1014cf6..c6ca33e 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -1,5 +1,6 @@ import { HtmlBasePlugin } from "@11ty/eleventy"; import { eleventyImageTransformPlugin } from "@11ty/eleventy-img"; +import eleventyNavigationPlugin from "@11ty/eleventy-navigation"; import { attrs } from "@mdit/plugin-attrs"; import { markdownitLinkAttributes } from 'markdown-it-link-attributes'; @@ -66,18 +67,14 @@ export default async function (eleventyConfig) { decoding: "async", }, }, - /* If you want to use specific images as the OG image... filenameFormat: function (hash, src, width, format, options) { - // If you're building multiple widths - // const extension = path.extname(src); - // const name = path.basename(src, extension); - // return `${name}-${width}.${extension}`; - return path.basename(src); }, - */ }); + /* Navigation */ + eleventyConfig.addPlugin(eleventyNavigationPlugin); + /* All filters from _config/filters.js */ eleventyConfig.addPlugin(pluginFilters); diff --git a/package-lock.json b/package-lock.json index b9c8ae1..bc8f452 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,7 @@ "devDependencies": { "@11ty/eleventy": "^3.1.5", "@11ty/eleventy-img": "^6.0.4", + "@11ty/eleventy-navigation": "^1.0.5", "@mdit/plugin-attrs": "^0.25.1", "luxon": "^3.7.2", "markdown-it-anchor": "^10.0.0", @@ -167,6 +168,20 @@ "url": "https://opencollective.com/11ty" } }, + "node_modules/@11ty/eleventy-navigation": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@11ty/eleventy-navigation/-/eleventy-navigation-1.0.5.tgz", + "integrity": "sha512-zb6xe29cM9viSdYtZywKIkJw2HIROyBINdBcFWC9uD0c/jYOTAex5nwy3HNEuh5t6/Ld/S9V4gEizfmeYuYpCQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "dependency-graph": "^1.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/11ty" + } + }, "node_modules/@11ty/eleventy-plugin-bundle": { "version": "3.0.7", "resolved": "https://registry.npmjs.org/@11ty/eleventy-plugin-bundle/-/eleventy-plugin-bundle-3.0.7.tgz", diff --git a/package.json b/package.json index 9dbdf47..b119352 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "devDependencies": { "@11ty/eleventy": "^3.1.5", "@11ty/eleventy-img": "^6.0.4", + "@11ty/eleventy-navigation": "^1.0.5", "@mdit/plugin-attrs": "^0.25.1", "luxon": "^3.7.2", "markdown-it-anchor": "^10.0.0",