« get me outta code hell

content: generateCoverArtwork: displayMode -> mode - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-06-14 12:45:17 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-06-14 12:45:17 -0300
commit13c449ccbee3b8cf87ffd8ab546565d5b2f970b7 (patch)
tree01ffa8e00a137b7c4428b05c29f28b272d8b58d0 /src
parent3657d69aeb50092f210943a3a00ff147ec48c633 (diff)
content: generateCoverArtwork: displayMode -> mode
Diffstat (limited to 'src')
-rw-r--r--src/content/dependencies/generateCoverArtwork.js4
-rw-r--r--src/content/dependencies/generateStickyHeadingContainer.js2
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'},