« get me outta code hell

content: image-box color context - 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>2024-01-01 00:19:42 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-01-01 15:34:01 -0400
commit86418c8f864fcd251589440c69ec99c6ea58ae70 (patch)
tree7b46631bf297b21f25f38e5b0fb6a9a6ee4b0e82 /src/content/dependencies/image.js
parentfc46f002300a5cec8deec2ec404dcfc29c2e8d63 (diff)
content: image-box color context
Diffstat (limited to 'src/content/dependencies/image.js')
-rw-r--r--src/content/dependencies/image.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/content/dependencies/image.js b/src/content/dependencies/image.js
index bc3cc17..fb4b59b 100644
--- a/src/content/dependencies/image.js
+++ b/src/content/dependencies/image.js
@@ -158,7 +158,10 @@ export default {
 
     if (slots.color) {
       const colorStyle =
-        relations.colorStyle.slot('color', slots.color);
+        relations.colorStyle.slots({
+          color: slots.color,
+          context: 'image-box',
+        });
 
       if (willLink) {
         linkAttributes.add(colorStyle);