« get me outta code hell

content, css: track banners - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/generateBanner.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2026-03-14 15:51:01 -0300
committer(quasar) nebula <qznebula@protonmail.com>2026-03-14 15:51:01 -0300
commita76cadc34f4e3a2d48816d3d01968fc3283e1af0 (patch)
tree2c2eaa2b224ce9ece93f1de361acf58e15a951ef /src/content/dependencies/generateBanner.js
parent28471913b2da726ab07b7549310d976c1b31bb54 (diff)
content, css: track banners
Diffstat (limited to 'src/content/dependencies/generateBanner.js')
-rw-r--r--src/content/dependencies/generateBanner.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/content/dependencies/generateBanner.js b/src/content/dependencies/generateBanner.js
index 509b15c2..b6214cc0 100644
--- a/src/content/dependencies/generateBanner.js
+++ b/src/content/dependencies/generateBanner.js
@@ -11,10 +11,17 @@ export default {
     alt: {
       type: 'string',
     },
+
+    attributes: {
+      type: 'attributes',
+      mutable: false,
+    },
   },
 
   generate: (slots, {html, to}) =>
     html.tag('div', {id: 'banner'},
+      slots.attributes,
+
       html.tag('img',
         {src: to(...slots.path)},