From 860b9fbf12315362d2c33864521c3f081fd66545 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 21 Nov 2022 20:05:27 -0400 Subject: use html.fragment instead of ternary most places --- src/page/album-commentary.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/page/album-commentary.js') diff --git a/src/page/album-commentary.js b/src/page/album-commentary.js index beddf5a..e3a63ba 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'}, -- cgit 1.3.0-6-gf8a5