diff options
Diffstat (limited to 'src/content/dependencies/generateCommentarySection.js')
-rw-r--r-- | src/content/dependencies/generateCommentarySection.js | 3 |
1 files changed, 2 insertions, 1 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'}, ], |