Syntax highlighting + a couple other plugins

This commit is contained in:
2025-03-25 21:43:54 -04:00
parent 6382faadb3
commit d8dcfbcda1
5 changed files with 168 additions and 1 deletions

View File

@@ -1,7 +1,8 @@
import pugPlugin from "@11ty/eleventy-plugin-pug";
import brokenLinksPlugin from "eleventy-plugin-broken-links";
import { eleventyImageTransformPlugin } from "@11ty/eleventy-img";
import { EleventyRenderPlugin } from '@11ty/eleventy';
import syntaxHighlight from "@11ty/eleventy-plugin-syntaxhighlight";
import { EleventyRenderPlugin, IdAttributePlugin } from '@11ty/eleventy';
import * as fs from 'fs';
import * as opml from 'opml';
@@ -9,6 +10,7 @@ export default function (eleventyConfig) {
eleventyConfig.setInputDirectory("src")
eleventyConfig.addPlugin(brokenLinksPlugin);
eleventyConfig.addPlugin(pugPlugin);
eleventyConfig.addPlugin(syntaxHighlight);
eleventyConfig.addPlugin(eleventyImageTransformPlugin, {
htmlOptions: {
imgAttributes: {
@@ -16,6 +18,7 @@ export default function (eleventyConfig) {
},
},
});
eleventyConfig.addPlugin(IdAttributePlugin);
eleventyConfig.addPlugin(EleventyRenderPlugin);
eleventyConfig.addPassthroughCopy("src/assets/**")