From d6276067a5fee5686f391cb505fa99ee44db59f1 Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Sun, 28 Jul 2024 19:09:56 +0800 Subject: [PATCH] Remove the word shortcode from shortcode config file --- src/_config/shortcodes.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/_config/shortcodes.js b/src/_config/shortcodes.js index 50076927..1c9a7f51 100644 --- a/src/_config/shortcodes.js +++ b/src/_config/shortcodes.js @@ -13,14 +13,14 @@ export default function(eleventyConfig) { `; }); - // Paired shortcode: custom container + // Custom container eleventyConfig.addPairedShortcode('container', (children, el, className) => { const classMarkup = className ? ` class="${className}"` : ""; const content = markdownLibrary.render(children); return `<${el}${classMarkup}>${content}`; }); - // Paired shortcode: image figure and figcaption + // Image figure and figcaption eleventyConfig.addPairedShortcode('imgFigure', (caption, img, alt=caption, enableLazyLoading=true) => { const figcaption = markdownLibrary.renderInline(caption); return `
@@ -29,7 +29,7 @@ export default function(eleventyConfig) {
`; }); - // Paired shorcode: Content accordion + // Content accordion eleventyConfig.addPairedShortcode('accordion', (content, summary) => { const summaryMarkup = markdownLibrary.renderInline(summary); const contentMarkup = markdownLibrary.render(content);