From 02bde385e5ec21c12750099aaae4ac1600b36f50 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 13 Aug 2025 05:50:01 -0300 Subject: data: Artwork.style --- src/content/dependencies/image.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/content/dependencies/image.js') 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 . + imgAttributes: { + type: 'attributes', + mutable: false, + }, + // Added to the itself. alt: {type: 'string'}, @@ -141,6 +147,8 @@ export default { const imgAttributes = html.attributes([ {class: 'image'}, + slots.imgAttributes, + slots.alt && {alt: slots.alt}, dimensions && -- cgit 1.3.0-6-gf8a5