diff options
Diffstat (limited to 'src/content')
-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'}, + ], })), }; } |