« get me outta code hell

content: generateContentHeading: drop id slot - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/generateContentHeading.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-06-09 15:24:38 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-06-09 17:53:26 -0300
commita5c492ea35aac26f94ac7cf4d9af1ae28132ff74 (patch)
tree21d1cac7d351d3ba05721fc998e16481e56712ff /src/content/dependencies/generateContentHeading.js
parenta43529402a3d4dff36bddde977d860bd35d02ce9 (diff)
content: generateContentHeading: drop id slot
Diffstat (limited to 'src/content/dependencies/generateContentHeading.js')
-rw-r--r--src/content/dependencies/generateContentHeading.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/content/dependencies/generateContentHeading.js b/src/content/dependencies/generateContentHeading.js
index ab883ed8..2753fe86 100644
--- a/src/content/dependencies/generateContentHeading.js
+++ b/src/content/dependencies/generateContentHeading.js
@@ -24,8 +24,10 @@ export default {
 
     color: {validate: v => v.isColor},
 
-    id: {type: 'string'},
-    tag: {type: 'string', default: 'p'},
+    tag: {
+      type: 'string',
+      default: 'p',
+    },
   },
 
   generate: (relations, slots, {html}) =>
@@ -34,9 +36,6 @@ export default {
 
       slots.attributes,
 
-      slots.id &&
-        {id: slots.id},
-
       slots.color &&
         relations.colorStyle.slot('color', slots.color),