« get me outta code hell

content, client: generateContentHeading: expose main title directly - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-11-09 17:36:46 -0400
committer(quasar) nebula <qznebula@protonmail.com>2023-11-16 14:33:28 -0400
commit69385cc2ca5d4a7691d6cb3726de5741de153a7c (patch)
tree6c820a6faaf3c5bac71cc3bf6b9df3a503c25115 /src/content/dependencies
parentaec1daecb6f2ae60697b836ec80775edc171ebba (diff)
content, client: generateContentHeading: expose main title directly
Diffstat (limited to 'src/content/dependencies')
-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 56f68cb3..0343409c 100644
--- a/src/content/dependencies/generateContentHeading.js
+++ b/src/content/dependencies/generateContentHeading.js
@@ -29,7 +29,9 @@ export default {
               .slot('color', slots.color)
               .content,
       }, [
-        slots.title,
+        html.tag('span',
+          {[html.onlyIfContent]: true, class: 'content-heading-main-title'},
+          slots.title),
 
         html.tag('span',
           {[html.onlyIfContent]: true, class: 'content-heading-accent'},