« get me outta code hell

content: various higher-level attribute processing cleanup - 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>2023-12-30 10:14:17 -0400
committer(quasar) nebula <qznebula@protonmail.com>2023-12-30 16:26:36 -0400
commit51b04c86147f1405c33829cc339b8c045dcafc4f (patch)
tree961c2f22c13065e910441e7d87b95d1d6d0c68b5 /src/content/dependencies/generateContentHeading.js
parent3fb01a3022a3f47c0e1e6e76771a35fce23a128b (diff)
content: various higher-level attribute processing cleanup
Diffstat (limited to 'src/content/dependencies/generateContentHeading.js')
-rw-r--r--src/content/dependencies/generateContentHeading.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/content/dependencies/generateContentHeading.js b/src/content/dependencies/generateContentHeading.js
index 816cc98a..1c7ef1f1 100644
--- a/src/content/dependencies/generateContentHeading.js
+++ b/src/content/dependencies/generateContentHeading.js
@@ -18,9 +18,11 @@ export default {
 
   generate: (relations, slots, {html}) =>
     html.tag(slots.tag, {class: 'content-heading'},
-      {id: slots.id},
       {tabindex: '0'},
 
+      slots.id &&
+        {id: slots.id},
+
       slots.color &&
         relations.colorStyle.slot('color', slots.color),