diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-01-13 17:42:25 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-01-13 17:42:25 -0400 |
commit | 7ee58f434a5c34c73b60926595f99b83ed869ebf (patch) | |
tree | 0c1b508c7651773310453839fd74afd7a6db6bc6 /src/content/dependencies | |
parent | 8b0f3c52869213ef229001f2b61cb967c35287c6 (diff) |
content: transformContent: got dang it
Diffstat (limited to 'src/content/dependencies')
-rw-r--r-- | src/content/dependencies/transformContent.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/content/dependencies/transformContent.js b/src/content/dependencies/transformContent.js index ff893896..ddf82391 100644 --- a/src/content/dependencies/transformContent.js +++ b/src/content/dependencies/transformContent.js @@ -385,7 +385,7 @@ export default { type: 'image', inline: false, data: - html.tag('div', {class: 'content-image'}, + html.tag('div', {class: 'content-image-container'}, image.slots({ src, @@ -394,10 +394,12 @@ export default { height: height ?? null, thumb: slots.thumb, - attributes: - (pixelate - ? {class: 'pixelate'} - : null), + attributes: [ + {class: 'content-image'}, + + pixelate && + {class: 'pixelate'}, + ], })), }; } |