mirror of
https://github.com/kevinnlsamuel/rainbowcroissant.git
synced 2025-12-06 10:06:01 +05:30
install some stuff for 11ty
markdown attributes configure eleventy renderFile plugin
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
const { EleventyHtmlBasePlugin } = require("@11ty/eleventy");
|
||||
const { EleventyHtmlBasePlugin, EleventyRenderPlugin } = require("@11ty/eleventy");
|
||||
const markdownItAttrs = require("markdown-it-attrs");
|
||||
|
||||
module.exports = function(eleventyConfig){
|
||||
eleventyConfig.addPlugin(EleventyHtmlBasePlugin);
|
||||
eleventyConfig.addPlugin(EleventyRenderPlugin);
|
||||
|
||||
eleventyConfig.amendLibrary("md", mdLib => mdLib.use(markdownItAttrs));
|
||||
|
||||
eleventyConfig.addPassthroughCopy("static");
|
||||
|
||||
return {
|
||||
pathPrefix: "/",
|
||||
dir: {
|
||||
|
||||
Reference in New Issue
Block a user