From 3ec7d66ece76cea96b0caa14e5729b5642a76afd Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 21 Jun 2024 17:57:37 -0300 Subject: content: generateTrackInfoPage: credit sources section --- src/content/dependencies/generateCommentarySection.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/content/dependencies/generateCommentarySection.js') diff --git a/src/content/dependencies/generateCommentarySection.js b/src/content/dependencies/generateCommentarySection.js index c5090660..6e7fea6a 100644 --- a/src/content/dependencies/generateCommentarySection.js +++ b/src/content/dependencies/generateCommentarySection.js @@ -27,11 +27,19 @@ export default { : !!entries[0].date), }), - generate: (data, relations, {html, language}) => + slots: { + title: {type: 'html', mutable: false}, + }, + + generate: (data, relations, slots, {html, language}) => html.tags([ relations.heading .slots({ - title: language.$('misc.artistCommentary'), + title: + (html.isBlank(slots.title) + ? language.$('misc.artistCommentary') + : slots.title), + attributes: [ {id: 'artist-commentary'}, data.firstEntryIsDated && -- cgit 1.3.0-6-gf8a5