« get me outta code hell

instead of ul joinNoOxford list of listening links - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/upd8.js
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2019-11-13 16:46:38 -0400
committerFlorrie <towerofnix@gmail.com>2019-11-13 16:46:38 -0400
commit0e23ee4b4d885cd78a71af80db7692d42353298f (patch)
tree2d159a20b5b415573f646720cb3c7fde74c26f7c /upd8.js
parenta1e7f28c9ef78e8930c0763c1e201800a815b122 (diff)
instead of ul joinNoOxford list of listening links
Diffstat (limited to 'upd8.js')
-rw-r--r--upd8.js16
1 files changed, 7 insertions, 9 deletions
diff --git a/upd8.js b/upd8.js
index 4b36575..7a2887b 100644
--- a/upd8.js
+++ b/upd8.js
@@ -509,15 +509,13 @@ async function writeTrackPage(track, albumData) {
                             `).join('\n')}
                         </ul>
                     `}
-                    <p>Listen:</p>
-                    <ul>
-                        ${track.urls.map(url => fixWS`
-                            <li><a href="${url}">${
-                                url.includes('bandcamp.com') ? 'Bandcamp' :
-                                url.includes('youtu') ? 'YouTube' :
-                                '(External)'
-                            }</a></li>
-                        `)}
+                    <p>Listen: ${joinNoOxford(track.urls.map(url => fixWS`
+                        <a href="${url}">${
+                            url.includes('bandcamp.com') ? 'Bandcamp' :
+                            url.includes('youtu') ? 'YouTube' :
+                            '(External)'
+                        }</a>
+                    `))}</p>
                     </ul>
                 </div>
             </body>