From e771760d3947fcec2eaf866ae707a7d5105f8850 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 23 Jun 2024 16:42:06 -0300 Subject: content: generateCommentarySection: custom id --- src/content/dependencies/generateCommentarySection.js | 3 ++- src/content/dependencies/generateTrackInfoPage.js | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src/content') 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'), }), ], -- cgit 1.3.0-6-gf8a5