« get me outta code hell

content, urls, client: /vgm-album/ - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/linkAlbumCommentary.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2026-05-28 13:39:22 -0300
committer(quasar) nebula <qznebula@protonmail.com>2026-05-28 13:39:22 -0300
commite036782607ed0e1d43df7f8d4643cc7d7671c359 (patch)
treed43721535d93bac885a9d29f85f09a0e02ef96af /src/content/dependencies/linkAlbumCommentary.js
parent75e68aa1c8886e69d63a0e0b365fd6a7c309412c (diff)
content, urls, client: /vgm-album/
Diffstat (limited to 'src/content/dependencies/linkAlbumCommentary.js')
-rw-r--r--src/content/dependencies/linkAlbumCommentary.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/content/dependencies/linkAlbumCommentary.js b/src/content/dependencies/linkAlbumCommentary.js
index f1917345..431dd6ec 100644
--- a/src/content/dependencies/linkAlbumCommentary.js
+++ b/src/content/dependencies/linkAlbumCommentary.js
@@ -1,6 +1,10 @@
 export default {
-  relations: (relation, album) =>
-    ({link: relation('linkThing', 'localized.albumCommentary', album)}),
+  relations: (relation, album) => ({
+    link:
+      (album.style === 'in-game vgm'
+        ? relation('linkThing', 'localized.vgmAlbumCommentary', album)
+        : relation('linkThing', 'localized.albumCommentary', album)),
+  }),
 
   generate: (relations) => relations.link,
 };