From e4faa8a4cbc08621a95413047370b2bda25bb3cb Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 31 Jan 2026 22:17:54 -0400 Subject: data, content: MusicVideo.title, drop MusicVideo.labelStyle --- src/content/dependencies/generateMusicVideo.js | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) (limited to 'src/content/dependencies/generateMusicVideo.js') 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); -- cgit 1.3.0-6-gf8a5