« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/content/dependencies/generateListingPage.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/content/dependencies/generateListingPage.js b/src/content/dependencies/generateListingPage.js
index 403f891f..4c86431d 100644
--- a/src/content/dependencies/generateListingPage.js
+++ b/src/content/dependencies/generateListingPage.js
@@ -191,9 +191,14 @@ export default {
                       row: rows,
                       attributes: rowAttributes ?? rows.map(() => null),
                     }).map(({row, attributes}) =>
-                        html.tag('li',
-                          attributes,
-                          formatListingString('chunk.item', row))))),
+                        (attributes?.href
+                          ? html.tag('li',
+                              html.tag('a',
+                                attributes,
+                                formatListingString('chunk.item', row)))
+                          : html.tag('li',
+                              attributes,
+                              formatListingString('chunk.item', row)))))),
               ]),
           ]),
       ],