diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-04-05 16:06:52 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-04-05 16:06:52 -0300 |
commit | cea250920bdbe12e1d87469ee9070211610884a4 (patch) | |
tree | 0d60d7b272ce8f5d65707224730b00456e31f0c8 /src/content | |
parent | 17f1220718f0e736723108042fc00cd5cb90070d (diff) |
test: generateAdditionalFilesShortcut (snapshot)
Diffstat (limited to 'src/content')
-rw-r--r-- | src/content/dependencies/generateAdditionalFilesShortcut.js | 6 |
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', |