« get me outta code hell

content: generate{Album,Group}SecondaryNav: use nav-link classes - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/generateGroupSecondaryNav.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-03-16 13:51:27 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-03-16 13:51:27 -0300
commitb9e441d8e1d89fd7c89674eb08201073c16fd955 (patch)
tree06ec17e24a8140f70df0160a6e7301b247361b3a /src/content/dependencies/generateGroupSecondaryNav.js
parentc2019cab1e121e6e324fb74188652e541c30b6c2 (diff)
content: generate{Album,Group}SecondaryNav: use nav-link classes
Diffstat (limited to 'src/content/dependencies/generateGroupSecondaryNav.js')
-rw-r--r--src/content/dependencies/generateGroupSecondaryNav.js13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/content/dependencies/generateGroupSecondaryNav.js b/src/content/dependencies/generateGroupSecondaryNav.js
index 6501cfc..17eb508 100644
--- a/src/content/dependencies/generateGroupSecondaryNav.js
+++ b/src/content/dependencies/generateGroupSecondaryNav.js
@@ -83,15 +83,18 @@ export default {
     return relations.secondaryNav.slots({
       class: 'nav-links-groups',
       content:
-        (!relations.previousGroupLink && !relations.nextGroupLink
-          ? categoryLink ?? html.blank()
-          : html.tag('span',
-              relations.colorStyle,
+        (relations.previousGroupLink || relations.nextGroupLink
+          ? html.tag('span', {class: 'nav-link'},
+              relations.colorStyle.slot('context', 'primary-only'),
 
               [
                 categoryLink?.slot('color', false),
                 `(${language.formatUnitList(previousNextPart)})`,
-              ])),
+              ])
+       : categoryLink
+          ? html.tag('span', {class: 'nav-link'},
+              categoryLink)
+          : html.blank()),
     });
   },
 };