« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content
diff options
context:
space:
mode:
Diffstat (limited to 'src/content')
-rw-r--r--src/content/dependencies/generateAdditionalFilesShortcut.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/content/dependencies/generateAdditionalFilesShortcut.js b/src/content/dependencies/generateAdditionalFilesShortcut.js
index dd097e28..7dfe07b3 100644
--- a/src/content/dependencies/generateAdditionalFilesShortcut.js
+++ b/src/content/dependencies/generateAdditionalFilesShortcut.js
@@ -1,3 +1,5 @@
+import {empty} from '../../util/sugar.js';
+
 export default {
   extraDependencies: [
     'html',
@@ -14,6 +16,10 @@ export default {
     html,
     language,
   }) {
+    if (empty(data.titles)) {
+      return html.blank();
+    }
+
     return language.$('releaseInfo.additionalFiles.shortcut', {
       anchorLink:
         html.tag('a',