From 6f148aedba90d042a4cff0bfc55bc7690e7066e3 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 23 Sep 2025 17:14:20 -0300 Subject: content: generateFlashInfoPage: use generateReadCommentaryLine --- src/content/dependencies/generateFlashInfoPage.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/content/dependencies/generateFlashInfoPage.js b/src/content/dependencies/generateFlashInfoPage.js index 7f047cad..a7c23eae 100644 --- a/src/content/dependencies/generateFlashInfoPage.js +++ b/src/content/dependencies/generateFlashInfoPage.js @@ -12,6 +12,7 @@ export default { 'generateFlashArtworkColumn', 'generateFlashNavAccent', 'generatePageLayout', + 'generateReadCommentaryLine', 'generateTrackList', 'linkExternal', 'linkFlashAct', @@ -61,6 +62,9 @@ export default { commentaryContentHeading: relation('generateCommentaryContentHeading', flash), + readCommentaryLine: + relation('generateReadCommentaryLine', flash), + flashActLink: relation('linkFlashAct', flash.act), @@ -131,14 +135,9 @@ export default { {[html.joinChildren]: html.tag('br')}, language.encapsulate('releaseInfo', capsule => [ - !html.isBlank(relations.artistCommentaryEntries) && - language.encapsulate(capsule, 'readCommentary', capsule => - language.$(capsule, { - link: - html.tag('a', - {href: '#artist-commentary'}, - language.$(capsule, 'link')), - })), + (!html.isBlank(relations.contributorContributionList) || + !html.isBlank(relations.featuredTracksList)) && + relations.readCommentaryLine, !html.isBlank(relations.creditSourceEntries) && language.encapsulate(capsule, 'readCreditingSources', capsule => -- cgit 1.3.0-6-gf8a5