« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/upd8.js
diff options
context:
space:
mode:
Diffstat (limited to 'upd8.js')
-rwxr-xr-xupd8.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/upd8.js b/upd8.js
index 8b0c6ecc..d71e1ba9 100755
--- a/upd8.js
+++ b/upd8.js
@@ -2026,6 +2026,7 @@ writePage.html = (pageFn, {paths, strings, to}) => {
 
     theme = theme || getThemeString(wikiInfo);
 
+    banner ||= {};
     banner.classes ??= [];
     banner.src ??= '';
     banner.position ??= '';
@@ -2651,7 +2652,7 @@ function writeAlbumPage(album) {
             `--album-directory: ${album.directory}`
         ]),
 
-        banner: {
+        banner: album.bannerArtists && {
             src: to.albumBanner(album.directory),
             alt: strings('misc.alt.albumBanner'),
             position: 'top'