generated from oleeskild/digitalgarden
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(userSetup): add
EleventyHtmlBasePlugin
and set pathPrefix
- Loading branch information
1 parent
93d2ef1
commit 3cbe88b
Showing
1 changed file
with
7 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |