Skip to content

Commit

Permalink
feat(userSetup): add EleventyHtmlBasePlugin and set pathPrefix
Browse files Browse the repository at this point in the history
  • Loading branch information
HoshinoRei committed Jun 7, 2024
1 parent 93d2ef1 commit 3cbe88b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/helpers/userSetup.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
const { EleventyHtmlBasePlugin } = require("@11ty/eleventy");

function userMarkdownSetup(md) {
// The md parameter stands for the markdown-it instance used throughout the site generator.
// Feel free to add any plugin you want here instead of /.eleventy.js
}
function userEleventySetup(eleventyConfig) {
// The eleventyConfig parameter stands for the the config instantiated in /.eleventy.js.
// Feel free to add any plugin you want here instead of /.eleventy.js
eleventyConfig.addPlugin(EleventyHtmlBasePlugin);

return {
pathPrefix: "/digital-garden",
};
}
exports.userMarkdownSetup = userMarkdownSetup;
exports.userEleventySetup = userEleventySetup;

0 comments on commit 3cbe88b

Please sign in to comment.