From 5063b02599d5147ead4e832602ba1ef05a3656ba Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Thu, 25 May 2023 22:13:02 -0300 Subject: content: don't use content headings for listen links Not sure why this was as it was in the first place?? It's a divergence from the existing site anyway, so whatevs, problem solved. --- .../dependencies/generateAlbumInfoPageContent.js | 14 ++++---------- .../dependencies/generateTrackInfoPageContent.js | 22 ++++++++-------------- 2 files changed, 12 insertions(+), 24 deletions(-) (limited to 'src/content/dependencies') diff --git a/src/content/dependencies/generateAlbumInfoPageContent.js b/src/content/dependencies/generateAlbumInfoPageContent.js index 7b8522b7..963d00e0 100644 --- a/src/content/dependencies/generateAlbumInfoPageContent.js +++ b/src/content/dependencies/generateAlbumInfoPageContent.js @@ -56,9 +56,6 @@ export default { if (!empty(album.urls)) { const listen = sections.listen = {}; - listen.heading = - relation('generateContentHeading'); - listen.externalLinks = album.urls.map(url => relation('linkExternal', url, {type: 'album'})); @@ -204,13 +201,10 @@ export default { ]), sec.listen && - sec.listen.heading.slots({ - id: 'listen-on', - title: - language.$('releaseInfo.listenOn', { - links: language.formatDisjunctionList(sec.listen.externalLinks), - }), - }), + html.tag('p', + language.$('releaseInfo.listenOn', { + links: language.formatDisjunctionList(sec.listen.externalLinks), + })), html.tag('p', { diff --git a/src/content/dependencies/generateTrackInfoPageContent.js b/src/content/dependencies/generateTrackInfoPageContent.js index 47a9130d..a67c37c0 100644 --- a/src/content/dependencies/generateTrackInfoPageContent.js +++ b/src/content/dependencies/generateTrackInfoPageContent.js @@ -54,9 +54,6 @@ export default { const listen = sections.listen = {}; - listen.heading = - relation('generateContentHeading'); - if (!empty(track.urls)) { listen.externalLinks = track.urls.map(url => @@ -263,17 +260,14 @@ export default { }), ]), - sec.listen.heading.slots({ - id: 'listen-on', - title: - (sec.listen.externalLinks - ? language.$('releaseInfo.listenOn', { - links: language.formatDisjunctionList(sec.listen.externalLinks), - }) - : language.$('releaseInfo.listenOn.noLinks', { - name: html.tag('i', data.name), - })), - }), + html.tag('p', + (sec.listen.externalLinks + ? language.$('releaseInfo.listenOn', { + links: language.formatDisjunctionList(sec.listen.externalLinks), + }) + : language.$('releaseInfo.listenOn.noLinks', { + name: html.tag('i', data.name), + }))), html.tag('p', { -- cgit 1.3.0-6-gf8a5