« get me outta code hell

content: generateStickyHeadingContainer - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/generatePageLayout.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-04-15 20:17:01 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-04-15 20:17:01 -0300
commit0f89605c24a1d60284d4c08664ba2fcd1a8982b7 (patch)
treefd242dff8a4aef932cf785811e82a9cf57a1e700 /src/content/dependencies/generatePageLayout.js
parent0c471738994f0cb4fd87fa53ed9f61ab50dbb82a (diff)
content: generateStickyHeadingContainer
Diffstat (limited to 'src/content/dependencies/generatePageLayout.js')
-rw-r--r--src/content/dependencies/generatePageLayout.js17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/content/dependencies/generatePageLayout.js b/src/content/dependencies/generatePageLayout.js
index 86054437..e9de61df 100644
--- a/src/content/dependencies/generatePageLayout.js
+++ b/src/content/dependencies/generatePageLayout.js
@@ -3,6 +3,7 @@ import {empty, openAggregate} from '../../util/sugar.js';
 export default {
   contentDependencies: [
     'generateFooterLocalizationLinks',
+    'generateStickyHeadingContainer',
   ],
 
   extraDependencies: [
@@ -20,6 +21,9 @@ export default {
     relations.footerLocalizationLinks =
       relation('generateFooterLocalizationLinks');
 
+    relations.stickyHeadingContainer =
+      relation('generateStickyHeadingContainer');
+
     return relations;
   },
 
@@ -168,14 +172,11 @@ export default {
         if (!html.isBlank(slots.title)) {
           switch (slots.headingMode) {
             case 'sticky':
-              /*
-                generateStickyHeadingContainer({
-                  coverSrc: cover.src,
-                  coverAlt: cover.alt,
-                  coverArtTags: cover.artTags,
-                  title,
-                })
-              */
+              titleHTML =
+                relations.stickyHeadingContainer.slots({
+                  title: slots.title,
+                  cover: slots.cover,
+                });
               break;
             case 'static':
               titleHTML = html.tag('h1', slots.title);