diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2025-06-14 18:56:50 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2025-06-14 18:57:06 -0300 |
commit | e4d2740a7c649246072e94067f99cda0829133aa (patch) | |
tree | c59ebe65f9fa58fd1bb89f066957d76a2652fec5 /src/content/dependencies/generateTrackArtistCommentarySection.js | |
parent | d4a147cff78f25574b65068dcc2abc1c026eb3c8 (diff) |
content: generateContentContentHeading
Diffstat (limited to 'src/content/dependencies/generateTrackArtistCommentarySection.js')
-rw-r--r-- | src/content/dependencies/generateTrackArtistCommentarySection.js | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/content/dependencies/generateTrackArtistCommentarySection.js b/src/content/dependencies/generateTrackArtistCommentarySection.js index 2395ddfe..c7e7f0f8 100644 --- a/src/content/dependencies/generateTrackArtistCommentarySection.js +++ b/src/content/dependencies/generateTrackArtistCommentarySection.js @@ -2,8 +2,8 @@ import {empty, stitchArrays} from '#sugar'; export default { contentDependencies: [ + 'generateContentContentHeading', 'generateCommentaryEntry', - 'generateContentHeading', 'linkAlbum', 'linkTrack', ], @@ -18,8 +18,8 @@ export default { }), relations: (relation, query, track) => ({ - contentHeading: - relation('generateContentHeading'), + contentContentHeading: + relation('generateContentContentHeading', track), mainReleaseTrackLink: (track.isSecondaryRelease @@ -78,11 +78,10 @@ export default { generate: (data, relations, {html, language}) => language.encapsulate('misc.artistCommentary', capsule => html.tags([ - relations.contentHeading.clone() - .slots({ - attributes: {id: 'artist-commentary'}, - title: language.$('misc.artistCommentary'), - }), + relations.contentContentHeading.slots({ + attributes: {id: 'artist-commentary'}, + string: 'misc.artistCommentary', + }), relations.artistCommentaryEntries, |