« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/dependencies')
-rw-r--r--src/content/dependencies/generateMusicVideo.js14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/content/dependencies/generateMusicVideo.js b/src/content/dependencies/generateMusicVideo.js
index 035cd353..a481cb16 100644
--- a/src/content/dependencies/generateMusicVideo.js
+++ b/src/content/dependencies/generateMusicVideo.js
@@ -21,6 +21,9 @@ export default {
     label:
       musicVideo.label,
 
+    labelStyle:
+      musicVideo.labelStyle,
+
     url:
       musicVideo.url,
   }),
@@ -29,12 +32,21 @@ export default {
     language.encapsulate('misc.musicVideo', capsule =>
       html.tag('div', {class: 'music-video'}, [
         html.tag('p', {class: 'music-video-label'},
+          data.labelStyle !== 'label' &&
+            {class: data.labelStyle + '-style'},
+
           language.encapsulate(capsule, 'label', workingCapsule => {
             const workingOptions = {};
 
             if (data.label) {
               workingCapsule += '.customLabel';
-              workingOptions.label = data.label;
+
+              if (data.labelStyle === 'title') {
+                workingCapsule += '.title';
+                workingOptions.title = data.label;
+              } else {
+                workingOptions.label = data.label;
+              }
             }
 
             return language.$(workingCapsule, workingOptions);