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