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){
|
module.exports = function(eleventyConfig){
|
||||||
eleventyConfig.addPlugin(EleventyHtmlBasePlugin);
|
eleventyConfig.addPlugin(EleventyHtmlBasePlugin);
|
||||||
|
eleventyConfig.addPlugin(EleventyRenderPlugin);
|
||||||
|
|
||||||
|
eleventyConfig.amendLibrary("md", mdLib => mdLib.use(markdownItAttrs));
|
||||||
|
|
||||||
eleventyConfig.addPassthroughCopy("static");
|
eleventyConfig.addPassthroughCopy("static");
|
||||||
|
|
||||||
return {
|
return {
|
||||||
pathPrefix: "/",
|
pathPrefix: "/",
|
||||||
dir: {
|
dir: {
|
||||||
|
|||||||
319
package-lock.json
generated
319
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -7,6 +7,7 @@
|
|||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@11ty/eleventy": "^2.0.1"
|
"@11ty/eleventy": "^2.0.1",
|
||||||
|
"markdown-it-attrs": "^4.1.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user