diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2025-08-13 05:50:01 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2025-08-13 05:50:01 -0300 |
commit | 02bde385e5ec21c12750099aaae4ac1600b36f50 (patch) | |
tree | 7cd538c88b46eb469ef9995d56b608ff948ff9e5 /src/content/dependencies/image.js | |
parent | 789ffc7f759ab51ff874f2e12a009a7fdd44baa9 (diff) |
data: Artwork.style preview
Diffstat (limited to 'src/content/dependencies/image.js')
-rw-r--r-- | src/content/dependencies/image.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/content/dependencies/image.js b/src/content/dependencies/image.js index bf47b14f..2ffa4c48 100644 --- a/src/content/dependencies/image.js +++ b/src/content/dependencies/image.js @@ -60,6 +60,12 @@ export default { mutable: false, }, + // Added to the <img>. + imgAttributes: { + type: 'attributes', + mutable: false, + }, + // Added to the <img> itself. alt: {type: 'string'}, @@ -141,6 +147,8 @@ export default { const imgAttributes = html.attributes([ {class: 'image'}, + slots.imgAttributes, + slots.alt && {alt: slots.alt}, dimensions && |