diff options
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 |
commit | a43529402a3d4dff36bddde977d860bd35d02ce9 (patch) | |
tree | dab0107d22df31f234da015c2f4a019130b74a0c /src/content | |
parent | 9a2e287761d4871396ad9daca9e2df992ccdab0b (diff) |
content: generateContentHeading: attributes slot
Diffstat (limited to 'src/content')
-rw-r--r-- | src/content/dependencies/generateContentHeading.js | 7 |
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}, |