diff options
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 |
commit | 51b04c86147f1405c33829cc339b8c045dcafc4f (patch) | |
tree | 961c2f22c13065e910441e7d87b95d1d6d0c68b5 /src/content/dependencies/generateContentHeading.js | |
parent | 3fb01a3022a3f47c0e1e6e76771a35fce23a128b (diff) |
content: various higher-level attribute processing cleanup
Diffstat (limited to 'src/content/dependencies/generateContentHeading.js')
-rw-r--r-- | src/content/dependencies/generateContentHeading.js | 4 |
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), |