diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-06-23 16:42:06 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-06-24 15:03:11 -0300 |
commit | e771760d3947fcec2eaf866ae707a7d5105f8850 (patch) | |
tree | afea6095f44ece9a6eb075e171e1aa51ab14cdd5 /src | |
parent | 32ede21ad373affca6a6c5d4c92521e786d65a94 (diff) |
content: generateCommentarySection: custom id
Diffstat (limited to 'src')
-rw-r--r-- | src/content/dependencies/generateCommentarySection.js | 3 | ||||
-rw-r--r-- | src/content/dependencies/generateTrackInfoPage.js | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/content/dependencies/generateCommentarySection.js b/src/content/dependencies/generateCommentarySection.js index 6e7fea6a..ed871b47 100644 --- a/src/content/dependencies/generateCommentarySection.js +++ b/src/content/dependencies/generateCommentarySection.js @@ -29,6 +29,7 @@ export default { slots: { title: {type: 'html', mutable: false}, + id: {type: 'string', default: 'artist-commentary'}, }, generate: (data, relations, slots, {html, language}) => @@ -41,7 +42,7 @@ export default { : slots.title), attributes: [ - {id: 'artist-commentary'}, + {id: slots.id}, data.firstEntryIsDated && {class: 'first-entry-is-dated'}, ], diff --git a/src/content/dependencies/generateTrackInfoPage.js b/src/content/dependencies/generateTrackInfoPage.js index dd234bf4..2a7d5094 100644 --- a/src/content/dependencies/generateTrackInfoPage.js +++ b/src/content/dependencies/generateTrackInfoPage.js @@ -364,8 +364,8 @@ export default { relations.artistCommentarySection, relations.creditSourcesSection.slots({ - title: - language.$('misc.creditSources'), + id: 'credit-sources', + title: language.$('misc.creditSources'), }), ], |