« get me outta code hell

more sticky heading adjustments - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/misc-templates.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2022-12-07 07:30:48 -0400
committer(quasar) nebula <qznebula@protonmail.com>2022-12-07 07:30:48 -0400
commitf18ddd61d7430f82116b7f6003e68a548f39f766 (patch)
treea424f5145b759b765eff22498019a5b16e79272a /src/misc-templates.js
parent0735a45e0ddf693e35202c7c3ef3c15886139843 (diff)
more sticky heading adjustments
Diffstat (limited to 'src/misc-templates.js')
-rw-r--r--src/misc-templates.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/misc-templates.js b/src/misc-templates.js
index 10422a2..d7b24fb 100644
--- a/src/misc-templates.js
+++ b/src/misc-templates.js
@@ -727,13 +727,17 @@ function unbound_generateStickyHeadingContainer({
   html,
   img,
 
+  class: classes,
   coverSrc,
   coverAlt,
   coverTags,
   title,
 }) {
   return html.tag('div',
-    {class: 'content-sticky-heading-container'},
+    {class: [
+      'content-sticky-heading-container',
+      coverSrc && 'has-cover',
+    ].concat(classes)},
     [
       html.tag('div', {class: 'content-sticky-heading-row'}, [
         html.tag('h1', title),