« get me outta code hell

content: generatePageLayout: don't assume custom footer content - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-11-10 17:48:07 -0400
committer(quasar) nebula <qznebula@protonmail.com>2023-11-10 17:48:07 -0400
commitf7007f0a090f22929b450ac816757c49e17b9ef1 (patch)
tree4d4d6fea2b026410a9f08ede1bd70d15d441505a /src/content
parentad943caefcacf62347199a73a90dc704cd8e369c (diff)
content: generatePageLayout: don't assume custom footer content
Diffstat (limited to 'src/content')
-rw-r--r--src/content/dependencies/generatePageLayout.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/content/dependencies/generatePageLayout.js b/src/content/dependencies/generatePageLayout.js
index 72dfbae5..5fa6e751 100644
--- a/src/content/dependencies/generatePageLayout.js
+++ b/src/content/dependencies/generatePageLayout.js
@@ -85,8 +85,10 @@ export default {
     relations.stickyHeadingContainer =
       relation('generateStickyHeadingContainer');
 
-    relations.defaultFooterContent =
-      relation('transformContent', sprawl.footerContent);
+    if (sprawl.footerContent) {
+      relations.defaultFooterContent =
+        relation('transformContent', sprawl.footerContent);
+    }
 
     relations.colorStyleRules =
       relation('generateColorStyleRules');
@@ -231,7 +233,7 @@ export default {
 
     let footerContent = slots.footerContent;
 
-    if (html.isBlank(footerContent)) {
+    if (html.isBlank(footerContent) && relations.defaultFooterContent) {
       footerContent = relations.defaultFooterContent
         .slot('mode', 'multiline');
     }