From b9e441d8e1d89fd7c89674eb08201073c16fd955 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 16 Mar 2024 13:51:27 -0300 Subject: content: generate{Album,Group}SecondaryNav: use nav-link classes --- src/content/dependencies/generateGroupSecondaryNav.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/content/dependencies/generateGroupSecondaryNav.js') diff --git a/src/content/dependencies/generateGroupSecondaryNav.js b/src/content/dependencies/generateGroupSecondaryNav.js index 6501cfca..17eb5083 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()), }); }, }; -- cgit 1.3.0-6-gf8a5