« get me outta code hell

bind and htmlify rest of misc-templates - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/page
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2022-11-20 13:28:35 -0400
committer(quasar) nebula <qznebula@protonmail.com>2022-11-20 13:28:35 -0400
commite674b186ff755eaa8fb26f5885ac997e0ff0330e (patch)
tree553cbb094146cbfb5f308df32ee39fccc53b854d /src/page
parent1738f92b4ed82dd1bb8d361f66c7474322b0c16f (diff)
bind and htmlify rest of misc-templates
Diffstat (limited to 'src/page')
-rw-r--r--src/page/album.js4
-rw-r--r--src/page/flash.js9
2 files changed, 4 insertions, 9 deletions
diff --git a/src/page/album.js b/src/page/album.js
index 1cceead9..a92d9a06 100644
--- a/src/page/album.js
+++ b/src/page/album.js
@@ -219,9 +219,7 @@ export function write(album, {wikiData}) {
               },
               [
                 hasAdditionalFiles &&
-                  generateAdditionalFilesShortcut(album.additionalFiles, {
-                    language,
-                  }),
+                  generateAdditionalFilesShortcut(album.additionalFiles),
 
                 hasCommentaryEntries &&
                   language.$('releaseInfo.viewCommentary', {
diff --git a/src/page/flash.js b/src/page/flash.js
index c123c1be..6def3050 100644
--- a/src/page/flash.js
+++ b/src/page/flash.js
@@ -72,13 +72,10 @@ export function write(flash, {wikiData}) {
                 html.tag('li',
                   language.$('trackList.item.withArtists', {
                     track: link.track(track),
-                    by: `<span class="by">${
+                    by: html.tag('span', {class: 'by'},
                       language.$('trackList.item.withArtists.by', {
-                        artists: getArtistString(
-                          track.artistContribs
-                        ),
-                      })
-                    }</span>`,
+                        artists: getArtistString(track.artistContribs),
+                      })),
                   })))),
           ] : [],