feat: add image shortcode
This commit is contained in:
parent
189cc0a829
commit
ad435a16db
6 changed files with 446 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue