From 3fa97ac7235362921b5638ea757b518eaae28333 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 24 Mar 2021 21:20:57 -0300 Subject: whoops, don't show banner if no banner artists --- upd8.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/upd8.js b/upd8.js index 8b0c6ec..d71e1ba 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' -- cgit 1.3.0-6-gf8a5