From 916fc9c5c3b290602ac19e84269150ffbb7ab3b1 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Thu, 19 Dec 2024 12:49:37 -0400 Subject: content: generateAlbumCommentaryPage: secondary nav --- .../dependencies/generateAlbumSecondaryNavSeriesPart.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'src/content/dependencies/generateAlbumSecondaryNavSeriesPart.js') diff --git a/src/content/dependencies/generateAlbumSecondaryNavSeriesPart.js b/src/content/dependencies/generateAlbumSecondaryNavSeriesPart.js index 91e435ac..f579cdc9 100644 --- a/src/content/dependencies/generateAlbumSecondaryNavSeriesPart.js +++ b/src/content/dependencies/generateAlbumSecondaryNavSeriesPart.js @@ -74,8 +74,19 @@ export default { content: language.sanitize(data.name), }), - previousLink: relations.previousAlbumLink, - nextLink: relations.nextAlbumLink, + previousLink: + (relations.previousAlbumLink + ? relations.previousAlbumLink.slots({ + linkCommentaryPages: true, + }) + : null), + + nextLink: + (relations.nextAlbumLink + ? relations.nextAlbumLink.slots({ + linkCommentaryPages: true, + }) + : null), stringsKey: 'albumSecondaryNav.series', mainLinkOption: 'series', -- cgit 1.3.0-6-gf8a5