« get me outta code hell

content: generatePageLayout: blockwrap for hierarchical nav only - 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>2025-04-10 15:08:17 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-04-10 15:08:17 -0300
commitdc2fe4b2aa1e319a540b4b45045b25679359207b (patch)
tree9744c174153a27553abdfb77a80238288145ed2c /src/content
parent9f7261e6cb3c4443b1fe930ab6d2747a3213cb7e (diff)
content: generatePageLayout: blockwrap for hierarchical nav only
Diffstat (limited to 'src/content')
-rw-r--r--src/content/dependencies/generatePageLayout.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/content/dependencies/generatePageLayout.js b/src/content/dependencies/generatePageLayout.js
index c6c79789..7605c00d 100644
--- a/src/content/dependencies/generatePageLayout.js
+++ b/src/content/dependencies/generatePageLayout.js
@@ -414,6 +414,10 @@ export default {
                         })),
                     ]);
 
+                if (slots.navLinkStyle === 'index') {
+                  return navLink;
+                }
+
                 const prev =
                   atOffset(entries, i, -1);