diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2022-11-21 20:05:27 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2022-11-21 20:05:27 -0400 |
commit | 860b9fbf12315362d2c33864521c3f081fd66545 (patch) | |
tree | 0a1dec47c9e8beb901417f186eb68177d9d1e9d9 /src/page/album-commentary.js | |
parent | b7633208507e3cd25ef7f7018759a0402c13a2f8 (diff) |
use html.fragment instead of ternary most places
Diffstat (limited to 'src/page/album-commentary.js')
-rw-r--r-- | src/page/album-commentary.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/page/album-commentary.js b/src/page/album-commentary.js index beddf5aa..e3a63baf 100644 --- a/src/page/album-commentary.js +++ b/src/page/album-commentary.js @@ -43,10 +43,10 @@ export function write(album) { words: html.tag('b', language.formatWordCount(words, {unit: true})), entries: html.tag('b', language.countCommentaryEntries(entries.length, {unit: true})), })), - ...album.commentary ? [ + ...html.fragment(album.commentary && [ html.tag('h3', language.$('albumCommentaryPage.entry.title.albumCommentary')), html.tag('blockquote', transformMultiline(album.commentary)), - ] : [], + ]), ...album.tracks.filter(t => t.commentary).flatMap(track => [ html.tag('h3', {id: 'track.directory'}, |