diff --git a/bun.lockb b/bun.lockb index 8462b9e8..07d1c769 100644 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/eleventy.config.js b/eleventy.config.js index 4e9c2643..520f01f7 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -3,6 +3,7 @@ const { EleventyRenderPlugin } = require("@11ty/eleventy"); const pluginWebc = require("@11ty/eleventy-plugin-webc"); const pluginRss = require("@11ty/eleventy-plugin-rss"); const metagen = require('eleventy-plugin-metagen'); +const anchors_plugin = require('@orchidjs/eleventy-plugin-ids'); module.exports = function (eleventyConfig) { // Copy files @@ -17,6 +18,9 @@ module.exports = function (eleventyConfig) { }); eleventyConfig.addPlugin(pluginRss); eleventyConfig.addPlugin(metagen); + eleventyConfig.addPlugin(anchors_plugin, { + selectors: ['h2','h3','h4','h5','h6'], + }); return { dir: { diff --git a/package.json b/package.json index 5ffe4a64..a8977056 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "@11ty/eleventy": "^2.0.1", "@11ty/eleventy-plugin-rss": "^1.2.0", "@11ty/eleventy-plugin-webc": "^0.11.2", + "@orchidjs/eleventy-plugin-ids": "^0.1.1", "eleventy-plugin-metagen": "^1.8.3", "install": "^0.13.0" }