diff options
| author | (quasar) nebula <qznebula@protonmail.com> | 2026-01-31 22:17:54 -0400 |
|---|---|---|
| committer | (quasar) nebula <qznebula@protonmail.com> | 2026-01-31 22:17:54 -0400 |
| commit | e4faa8a4cbc08621a95413047370b2bda25bb3cb (patch) | |
| tree | 889f3a5cb6c65ea6c9df266f1ac61180b46f75bc /src/content/dependencies | |
| parent | 9de8146884faf5d3681ddfa5d867d0ebacf1fc7a (diff) | |
data, content: MusicVideo.title, drop MusicVideo.labelStyle
Diffstat (limited to 'src/content/dependencies')
| -rw-r--r-- | src/content/dependencies/generateMusicVideo.js | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/src/content/dependencies/generateMusicVideo.js b/src/content/dependencies/generateMusicVideo.js index a481cb16..b62c0224 100644 --- a/src/content/dependencies/generateMusicVideo.js +++ b/src/content/dependencies/generateMusicVideo.js @@ -18,12 +18,12 @@ export default { }), data: (musicVideo, _thing) => ({ + title: + musicVideo.title, + label: musicVideo.label, - labelStyle: - musicVideo.labelStyle, - url: musicVideo.url, }), @@ -32,21 +32,18 @@ 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'}, + data.title && + {class: 'title-style'}, language.encapsulate(capsule, 'label', workingCapsule => { const workingOptions = {}; - if (data.label) { + if (data.title) { + workingCapsule += '.customLabel.title'; + workingOptions.title = data.title; + } else if (data.label) { workingCapsule += '.customLabel'; - - if (data.labelStyle === 'title') { - workingCapsule += '.title'; - workingOptions.title = data.label; - } else { - workingOptions.label = data.label; - } + workingOptions.label = data.label; } return language.$(workingCapsule, workingOptions); |