« get me outta code hell

content, external-links: minor fixes - 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>2023-11-23 21:33:15 -0400
committer(quasar) nebula <qznebula@protonmail.com>2023-11-24 13:47:33 -0400
commitdb786c25a9fafc4cac37b108b4ea433019741c07 (patch)
tree4641a449ead2c499ddec1a568f1445dcaa24ff03
parent841daeb4a29657485488ac55a743492b010658de (diff)
content, external-links: minor fixes
-rw-r--r--src/content/dependencies/generateAlbumReleaseInfo.js6
-rw-r--r--src/util/external-links.js4
2 files changed, 7 insertions, 3 deletions
diff --git a/src/content/dependencies/generateAlbumReleaseInfo.js b/src/content/dependencies/generateAlbumReleaseInfo.js
index 4b819091..dd5baab9 100644
--- a/src/content/dependencies/generateAlbumReleaseInfo.js
+++ b/src/content/dependencies/generateAlbumReleaseInfo.js
@@ -94,7 +94,11 @@ export default {
             links:
               language.formatDisjunctionList(
                 relations.externalLinks
-                  .map(link => link.slot('context', 'album'))),
+                  .map(link =>
+                    link.slots({
+                      context: 'album',
+                      style: 'normal',
+                    }))),
           })),
     ]);
   },
diff --git a/src/util/external-links.js b/src/util/external-links.js
index c8cb1670..07a83bc1 100644
--- a/src/util/external-links.js
+++ b/src/util/external-links.js
@@ -133,7 +133,7 @@ export const externalLinkSpec = [
   {
     match: {
       context: 'artist',
-      domains: ['youtube.com', 'youtu.be'],
+      domain: 'youtube.com',
     },
 
     platform: 'youtube',
@@ -158,7 +158,7 @@ export const externalLinkSpec = [
     platform: 'bgreco',
     substring: 'flash',
 
-    icon: 'external',
+    icon: 'globe',
   },
 
   // This takes precedence over the secretPage match below.