diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-05-25 22:13:02 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-05-25 22:13:25 -0300 |
commit | 5063b02599d5147ead4e832602ba1ef05a3656ba (patch) | |
tree | ccca562a5e33e32047b2829a16dd448e0546c3d4 /src/content | |
parent | 22ca57c7fd366ff6ca055ec5c28f527e57509bb8 (diff) |
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.
Diffstat (limited to 'src/content')
-rw-r--r-- | src/content/dependencies/generateAlbumInfoPageContent.js | 14 | ||||
-rw-r--r-- | src/content/dependencies/generateTrackInfoPageContent.js | 22 |
2 files changed, 12 insertions, 24 deletions
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', { |