Skip to content

Commit

Permalink
Add comment clarifying use of multiple params for image shortcode
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandrHovhannisyan committed Aug 12, 2021
1 parent c4ae30b commit a471e3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/shortcodes/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const imageDefaults = {
sizes: '100vw',
};

// Liquid doesn't allow object parameters for partials or shortcodes
const imageShortcode = async (relativeSrc, alt, className, id, clickable) => {
const fullyQualifiedImagePath = path.join(imagePaths.source, relativeSrc);
const { name } = path.parse(fullyQualifiedImagePath);
Expand Down

0 comments on commit a471e3f

Please sign in to comment.