« 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
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
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.
-rw-r--r--src/content/dependencies/generateAlbumSecondaryNav.js5
-rw-r--r--src/content/dependencies/generatePageLayout.js3
-rw-r--r--src/static/site6.css6
3 files changed, 4 insertions, 10 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,
diff --git a/src/static/site6.css b/src/static/site6.css
index 73721956..b27a1fbb 100644
--- a/src/static/site6.css
+++ b/src/static/site6.css
@@ -488,13 +488,13 @@ a:not([href]):hover {
   display: inline-block;
 }
 
-.nav-links-index .nav-link.has-divider::before,
-.nav-links-groups .nav-link.has-divider::before {
+.nav-links-index .nav-link:not(:first-child)::before,
+.nav-links-groups .nav-link:not(:first-child)::before {
   content: "\0020\00b7\0020";
   font-weight: 800;
 }
 
-.nav-links-hierarchical .nav-link.has-divider::before {
+.nav-links-hierarchical .nav-link:not(:first-child)::before {
   content: "\0020/\0020";
 }