feat: add image shortcode

This commit is contained in:
Devin Haska 2024-01-31 16:03:51 -08:00
parent 189cc0a829
commit ad435a16db
6 changed files with 446 additions and 9 deletions

View file

@ -1,4 +1,5 @@
const markdown = require("./config/plugins/markdown.js");
const imageShortcode = require("./config/shortcodes/image.js");
module.exports = (eleventyConfig) => {
eleventyConfig.addWatchTarget("./src/assets");
@ -14,6 +15,7 @@ module.exports = (eleventyConfig) => {
// --------------------- Markdown -----------------------
eleventyConfig.setLibrary("md", markdown);
eleventyConfig.addShortcode("image", imageShortcode);
return {
// Optional (default is set): If your site deploys to a subdirectory, change `pathPrefix`, for example with with GitHub pages