From 13c449ccbee3b8cf87ffd8ab546565d5b2f970b7 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 14 Jun 2023 12:45:17 -0300 Subject: content: generateCoverArtwork: displayMode -> mode --- src/content/dependencies/generateCoverArtwork.js | 4 ++-- src/content/dependencies/generateStickyHeadingContainer.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/content/dependencies') diff --git a/src/content/dependencies/generateCoverArtwork.js b/src/content/dependencies/generateCoverArtwork.js index e9c91cf7..503bd120 100644 --- a/src/content/dependencies/generateCoverArtwork.js +++ b/src/content/dependencies/generateCoverArtwork.js @@ -31,14 +31,14 @@ export default { type: 'string', }, - displayMode: { + mode: { validate: v => v.is('primary', 'thumbnail'), default: 'primary', }, }, generate(relations, slots, {html, language}) { - switch (slots.displayMode) { + switch (slots.mode) { case 'primary': return html.tag('div', {id: 'cover-art-container'}, [ relations.image diff --git a/src/content/dependencies/generateStickyHeadingContainer.js b/src/content/dependencies/generateStickyHeadingContainer.js index e5f7cc5d..5ea10765 100644 --- a/src/content/dependencies/generateStickyHeadingContainer.js +++ b/src/content/dependencies/generateStickyHeadingContainer.js @@ -23,7 +23,7 @@ export default { hasCover && html.tag('div', {class: 'content-sticky-heading-cover-container'}, html.tag('div', {class: 'content-sticky-heading-cover'}, - slots.cover.slot('displayMode', 'thumbnail'))), + slots.cover.slot('mode', 'thumbnail'))), ]), html.tag('div', {class: 'content-sticky-subheading-row'}, -- cgit 1.3.0-6-gf8a5