« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content
diff options
context:
space:
mode:
Diffstat (limited to 'src/content')
-rw-r--r--src/content/dependencies/linkTemplate.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/content/dependencies/linkTemplate.js b/src/content/dependencies/linkTemplate.js
index f17dd1a4..f683ac6b 100644
--- a/src/content/dependencies/linkTemplate.js
+++ b/src/content/dependencies/linkTemplate.js
@@ -27,7 +27,7 @@ export default {
     language,
     to,
   }) {
-    const attributes = html.attributes();
+    const {attributes} = slots;
 
     if (!slots.linkless) {
       let href =
@@ -61,10 +61,6 @@ export default {
             disallowedTags: new Set(['a']),
           }));
 
-    return (
-      html.tag('a',
-        attributes,
-        slots.attributes,
-        content));
+    return html.tag('a', attributes, content);
   },
 }