« get me outta code hell

content: generatePageLayout etc: drop has-divider class - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-04-24 15:55:38 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-05-01 07:06:06 -0300
commita10d7530bb9253e08e32b9a1b1ac3fb2ed15685d (patch)
tree952d0b9bc273040c82867bbf4483db12e3383e7e /src/content/dependencies
parent44461c9f158702cfee48ae3a9339d3aba6de4d63 (diff)
content: generatePageLayout etc: drop has-divider class
Introduced for blockwrap purposes earlier, but unneeded since we
didn't actually use a blockwrap here in the end.
Diffstat (limited to 'src/content/dependencies')
-rw-r--r--src/content/dependencies/generateAlbumSecondaryNav.js5
-rw-r--r--src/content/dependencies/generatePageLayout.js3
2 files changed, 1 insertions, 7 deletions
diff --git a/src/content/dependencies/generateAlbumSecondaryNav.js b/src/content/dependencies/generateAlbumSecondaryNav.js
index 3b7a168d..d6ff8a0a 100644
--- a/src/content/dependencies/generateAlbumSecondaryNav.js
+++ b/src/content/dependencies/generateAlbumSecondaryNav.js
@@ -151,11 +151,8 @@ export default {
       stitchArrays({
         content: navLinkContents,
         colorStyle: relations.colorStyles,
-      }).map(({content, colorStyle}, index) =>
+      }).map(({content, colorStyle}) =>
           html.tag('span', {class: 'nav-link'},
-            index > 0 &&
-              {class: 'has-divider'},
-
             colorStyle.slot('context', 'primary-only'),
 
             content));
diff --git a/src/content/dependencies/generatePageLayout.js b/src/content/dependencies/generatePageLayout.js
index cbfc905a..927d45a1 100644
--- a/src/content/dependencies/generatePageLayout.js
+++ b/src/content/dependencies/generatePageLayout.js
@@ -348,9 +348,6 @@ export default {
                     showAsCurrent &&
                       {class: 'current'},
 
-                    i > 0 &&
-                      {class: 'has-divider'},
-
                     [
                       html.tag('span', {class: 'nav-link-content'},
                         // Use inline-block styling on the content span,