From 1efbd6a6fe303e8c6f106053d12fc21b1e8d7b52 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 23 Aug 2025 15:23:31 -0300 Subject: content: generateTrackInfoPage: needs lyrics line --- src/content/dependencies/generateTrackInfoPage.js | 8 ++++++++ src/strings-default.yaml | 3 +++ 2 files changed, 11 insertions(+) diff --git a/src/content/dependencies/generateTrackInfoPage.js b/src/content/dependencies/generateTrackInfoPage.js index 2c082cc4..efd0ec9f 100644 --- a/src/content/dependencies/generateTrackInfoPage.js +++ b/src/content/dependencies/generateTrackInfoPage.js @@ -149,6 +149,9 @@ export default { dateAlbumAddedToWiki: track.album.dateAddedToWiki, + needsLyrics: + track.needsLyrics, + singleTrackSingle: query.singleTrackSingle, @@ -370,6 +373,11 @@ export default { !html.isBlank(relations.referencingSourceEntries)) && html.tag('hr', {class: 'main-separator'}), + data.needsLyrics && + html.isBlank(relations.lyricsSection) && + html.tag('p', + language.$(pageCapsule, 'needsLyrics')), + relations.lyricsSection, html.tags([ diff --git a/src/strings-default.yaml b/src/strings-default.yaml index 93881aa2..3e07382f 100644 --- a/src/strings-default.yaml +++ b/src/strings-default.yaml @@ -2555,6 +2555,9 @@ trackPage: wiki: "across this wiki" album: "within this album" + needsLyrics: >- + This track has vocals, but there aren't lyrics available for it on this wiki, yet! + socialEmbed: heading: "{ALBUM}" title: "{TRACK}" -- cgit 1.3.0-6-gf8a5