From 55aae709bdf7db8b1fda3465e3de3d8b46673d4b Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 31 Dec 2023 22:48:08 -0400 Subject: content: linkTemplate: operate on provided attributes object --- src/content/dependencies/linkTemplate.js | 8 ++------ 1 file 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); }, } -- cgit 1.3.0-6-gf8a5