Install Eleventy plugin for Vento
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user