From 3cbe88b9638587df24de39fd34e027cd25d4cab1 Mon Sep 17 00:00:00 2001 From: HoshinoRei <81515470+HoshinoRei@users.noreply.github.com> Date: Sat, 8 Jun 2024 00:33:50 +0800 Subject: [PATCH] feat(userSetup): add `EleventyHtmlBasePlugin` and set `pathPrefix` --- src/helpers/userSetup.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/helpers/userSetup.js b/src/helpers/userSetup.js index ade7c3c..165dbc3 100644 --- a/src/helpers/userSetup.js +++ b/src/helpers/userSetup.js @@ -1,3 +1,5 @@ +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 @@ -5,6 +7,11 @@ function userMarkdownSetup(md) { 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;