diff --git a/bun.lockb b/bun.lockb index 07d1c769..14528117 100644 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/eleventy.config.js b/eleventy.config.js index 520f01f7..74db609e 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -4,6 +4,7 @@ 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'); +const pluginTOC = require('eleventy-plugin-toc'); module.exports = function (eleventyConfig) { // Copy files @@ -21,6 +22,7 @@ module.exports = function (eleventyConfig) { eleventyConfig.addPlugin(anchors_plugin, { selectors: ['h2','h3','h4','h5','h6'], }); + eleventyConfig.addPlugin(pluginTOC); return { dir: { diff --git a/package.json b/package.json index a8977056..b7cfe6a1 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "@11ty/eleventy-plugin-webc": "^0.11.2", "@orchidjs/eleventy-plugin-ids": "^0.1.1", "eleventy-plugin-metagen": "^1.8.3", + "eleventy-plugin-toc": "^1.1.5", "install": "^0.13.0" } } \ No newline at end of file