« get me outta code hell

content: generateArtTagGalleryPage: hide zero featuring line - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-02-08 23:44:16 -0400
committer(quasar) nebula <qznebula@protonmail.com>2025-02-25 20:03:29 -0400
commit1e8394616ab624a573f5df7ac8786354563e2313 (patch)
tree4ef9c773ea49c76a02e25c2f4ef3faba94b24026
parent8051e450166464e533e80c84133de30ac3beda87 (diff)
content: generateArtTagGalleryPage: hide zero featuring line
-rw-r--r--src/content/dependencies/generateArtTagGalleryPage.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/content/dependencies/generateArtTagGalleryPage.js b/src/content/dependencies/generateArtTagGalleryPage.js
index 26a52656..fee7f463 100644
--- a/src/content/dependencies/generateArtTagGalleryPage.js
+++ b/src/content/dependencies/generateArtTagGalleryPage.js
@@ -156,11 +156,12 @@ export default {
                 language.$(capsule, 'callToAction'),
               ])),
 
-          relations.featuredLine.clone()
-            .slots({
-              showing: 'all',
-              count: data.numArtworksTotal,
-            }),
+          data.numArtworksTotal >= 1 &&
+            relations.featuredLine.clone()
+              .slots({
+                showing: 'all',
+                count: data.numArtworksTotal,
+              }),
 
           data.hasMixedDirectIndirect && [
             relations.featuredLine.clone()