Install Eleventy plugin for Vento

This commit is contained in:
2025-05-03 11:15:02 +08:00
parent 658d64dbac
commit 5ca021cf29
3 changed files with 8 additions and 0 deletions

BIN
bun.lockb

Binary file not shown.

View File

@@ -4,6 +4,7 @@ import pluginEleventyNavigation from "@11ty/eleventy-navigation";
import pluginSyntaxHighlight from "@11ty/eleventy-plugin-syntaxhighlight";
import pluginEmbedEverything from "eleventy-plugin-embed-everything";
import pluginWordcount from "eleventy-plugin-wordcount-extended";
import { VentoPlugin } from 'eleventy-plugin-vento';
// Custom configurations
import markdownItConfig from "./src/_config/markdown-it.js";
@@ -41,6 +42,12 @@ export default function(eleventyConfig) {
eleventyConfig.addBundle("css");
eleventyConfig.addBundle("js", { toFileDirectory: "assets/js" });
// ----- Vento plugin for Eleventy
// Must be loaded after plugins that modify filters
eleventyConfig.addPlugin(VentoPlugin, {
autotrim: true,
});
return {
markdownTemplateEngine: "njk",
htmlTemplateEngine: "njk",

View File

@@ -24,6 +24,7 @@
"@uncenter/eleventy-plugin-toc": "^1.0.3",
"@zachleat/details-utils": "^2.0.2",
"eleventy-plugin-embed-everything": "^1.21.0",
"eleventy-plugin-vento": "^4.2.1",
"eleventy-plugin-wordcount-extended": "^0.2.1",
"markdown-it-anchor": "^9.2.0",
"markdown-it-attrs": "^4.3.1",