diff options
Diffstat (limited to 'src')
-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', { |