« get me outta code hell

data: Artwork.style - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/image.js
diff options
context:
space:
mode:
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
commit02bde385e5ec21c12750099aaae4ac1600b36f50 (patch)
tree7cd538c88b46eb469ef9995d56b608ff948ff9e5 /src/content/dependencies/image.js
parent789ffc7f759ab51ff874f2e12a009a7fdd44baa9 (diff)
data: Artwork.style preview
Diffstat (limited to 'src/content/dependencies/image.js')
-rw-r--r--src/content/dependencies/image.js8
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 &&