diff options
| author | (quasar) nebula <qznebula@protonmail.com> | 2026-01-18 19:19:54 -0400 |
|---|---|---|
| committer | (quasar) nebula <qznebula@protonmail.com> | 2026-01-18 19:19:54 -0400 |
| commit | 42b42c868ff3da1a120df0ec2be46a16fea54987 (patch) | |
| tree | 4357ea9b8757c15c81e671b59023f612fa325b7f /src/content | |
| parent | f0f84ce5d42a88d5f62a3133a2ee90f7756d4b66 (diff) | |
content, data: MusicVideo.labelStyle
Diffstat (limited to 'src/content')
| -rw-r--r-- | src/content/dependencies/generateMusicVideo.js | 14 |
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); |