From 857858ca9c5ce220242676561190dfc2c9713fbc Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 2 Apr 2024 17:15:58 -0300 Subject: content: generateAdditionalFilesListChunk: colorize entry title --- src/content/dependencies/generateAdditionalFilesListChunk.js | 6 +++++- .../test/snapshot/generateAlbumAdditionalFilesList.js.test.cjs | 8 ++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/content/dependencies/generateAdditionalFilesListChunk.js b/src/content/dependencies/generateAdditionalFilesListChunk.js index f5a82197..d0a603a8 100644 --- a/src/content/dependencies/generateAdditionalFilesListChunk.js +++ b/src/content/dependencies/generateAdditionalFilesListChunk.js @@ -19,7 +19,11 @@ export default { generate(slots, {html, language}) { const titleParts = ['releaseInfo.additionalFiles.entry']; - const titleOptions = {title: slots.title}; + const titleOptions = { + title: + html.tag('span', {class: 'group-name'}, + slots.title), + }; if (!html.isBlank(slots.description)) { titleParts.push('withDescription'); diff --git a/tap-snapshots/test/snapshot/generateAlbumAdditionalFilesList.js.test.cjs b/tap-snapshots/test/snapshot/generateAlbumAdditionalFilesList.js.test.cjs index 24b72e04..b1ba23c1 100644 --- a/tap-snapshots/test/snapshot/generateAlbumAdditionalFilesList.js.test.cjs +++ b/tap-snapshots/test/snapshot/generateAlbumAdditionalFilesList.js.test.cjs @@ -9,7 +9,7 @@ exports[`test/snapshot/generateAlbumAdditionalFilesList.js > TAP > generateAlbum