« get me outta code hell

content: generateContentHeading: attributes slot - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-06-09 15:17:50 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-06-09 15:17:50 -0300
commita43529402a3d4dff36bddde977d860bd35d02ce9 (patch)
treedab0107d22df31f234da015c2f4a019130b74a0c /src/content
parent9a2e287761d4871396ad9daca9e2df992ccdab0b (diff)
content: generateContentHeading: attributes slot
Diffstat (limited to 'src/content')
-rw-r--r--src/content/dependencies/generateContentHeading.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/content/dependencies/generateContentHeading.js b/src/content/dependencies/generateContentHeading.js
index 469db876..ab883ed8 100644
--- a/src/content/dependencies/generateContentHeading.js
+++ b/src/content/dependencies/generateContentHeading.js
@@ -17,6 +17,11 @@ export default {
       mutable: false,
     },
 
+    attributes: {
+      type: 'attributes',
+      mutable: false,
+    },
+
     color: {validate: v => v.isColor},
 
     id: {type: 'string'},
@@ -27,6 +32,8 @@ export default {
     html.tag(slots.tag, {class: 'content-heading'},
       {tabindex: '0'},
 
+      slots.attributes,
+
       slots.id &&
         {id: slots.id},