diff options
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 |
commit | f18ddd61d7430f82116b7f6003e68a548f39f766 (patch) | |
tree | a424f5145b759b765eff22498019a5b16e79272a /src/misc-templates.js | |
parent | 0735a45e0ddf693e35202c7c3ef3c15886139843 (diff) |
more sticky heading adjustments
Diffstat (limited to 'src/misc-templates.js')
-rw-r--r-- | src/misc-templates.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/misc-templates.js b/src/misc-templates.js index 10422a29..d7b24fbd 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), |