« get me outta code hell

content, external-links: [normal, compact] -> [platform, handle] - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/linkExternalAsIcon.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-03-29 18:42:54 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-03-29 20:10:13 -0300
commitb0d20c958cf8ef1edd4ac3ce28beb9ef63d00bdb (patch)
tree2d9da8188a051a2b71b987d0a7efb0929fea400c /src/content/dependencies/linkExternalAsIcon.js
parentaaeffb2fe2d2e169cf92da5142037214ac341219 (diff)
content, external-links: [normal, compact] -> [platform, handle]
Diffstat (limited to 'src/content/dependencies/linkExternalAsIcon.js')
-rw-r--r--src/content/dependencies/linkExternalAsIcon.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/content/dependencies/linkExternalAsIcon.js b/src/content/dependencies/linkExternalAsIcon.js
index 3eb355a..c363ad9 100644
--- a/src/content/dependencies/linkExternalAsIcon.js
+++ b/src/content/dependencies/linkExternalAsIcon.js
@@ -21,8 +21,8 @@ export default {
     const format = style =>
       language.formatExternalLink(data.url, {style, context: slots.context});
 
-    const normalText = format('normal');
-    const compactText = format('compact');
+    const platformText = format('platform');
+    const handleText = format('handle');
     const iconId = format('icon-id');
 
     return html.tag('a', {class: 'icon'},
@@ -34,7 +34,7 @@ export default {
       [
         html.tag('svg', [
           !slots.withText &&
-            html.tag('title', normalText),
+            html.tag('title', platformText),
 
           html.tag('use', {
             href: to('shared.staticIcon', iconId),
@@ -43,7 +43,7 @@ export default {
 
         slots.withText &&
           html.tag('span', {class: 'icon-text'},
-            compactText ?? normalText),
+            handleText ?? platformText),
       ]);
   },
 };